To learn more about the use of Berkeley style sockets, you can examine the set of examples at <installdir>\examples\network. These are the examples provided:
• EchoServer
• SendMessage
• HostInfo
• DaytimeUnicastServer
• DaytimeMulticastServer
• DaytimeBroadcast
• DaytimeMulticast
• DaytimeUnicast
The examples directory includes a readme file, readme.txt, that describes each example in detail.