Introduction - If you have any usage issues, please Google them yourself
C/C++ TCP/UDP simple Client/Server combo ... great beginner example (actually used for networking college project). Shows how to use the C/C++ Networking API to bind on a socket and send/receive data across it from both the client and the server side using TCP and UDP.