An introduction to TCP/IP Sockets - Page 1.
Using the TcpListener and TcpClient classes in C# - Page 3.
Using the UdpClient class in C# - Page 2.