Here is small code to stream audio files (in wav format) over an ethernet using udp protocol.
- unp.h - definitions used by the clientsound.c and serversound.c files.
- clientsound.c - client side process. It waits for the server to respond and then plays the streaming audio which it receives from the server in realtime.
- serversound.c - server side process. It waits for a client to connect. Once connection established it streams the audio to the client.