Listing 1 A UDP server that would work on UNIX systems

get a socket()
bind() it to an address
while ( recvfrom())
{
  process the incoming message
}