Here's something to get you started .... I know I had some tutorial on the net regarding this subject, but I don't seem to remember were I found them......
sockVersion = MAKEWORD(2, 0); // We'd like Winsock version 1.1
WSAStartup(sockVersion, &wsaData); // We begin by initializing Winsock
SOCKET My_Socket = socket(AF_INET, // Go over TCP/IP
SOCK_STREAM, // This is a stream-oriented socket
IPPROTO_TCP); // Use TCP rather than UDP
sockaddr_in My_Client; // Use a SOCKADDR_IN to fill Address info.
// Client Part //
char *msg = "Ola Daniel"; // Message to be sent
int len, bytes_sent;
len = 80; // Maximum number of bytes to send :-)
bytes_sent = send(My_Socket, msg, len, 0);