These are the steps I normally do to write a TCP client -
//Create a socket and connect to the server
WSAStartup<br />
socket<br />
connect<br />
// To send and receive data
send<br />
recv
// Shutting down
closesocket<br />
WSACleanup
You can look up the syntax and parameters to these functions in MSDN.