The WinSock (Windows Sockets) API is a socket programming library for Microsoft Windows Operating Systems.
It was originally based on Berkeley sockets. But several Microsoft specific changes were employed.
for Socket programming in C++ you need to include the following files
Code:
#include <winsock2.h>
Add a refrence to winsock library
Take Project-Settings-Link and add ws2_32.lib to the library modules list.
I am talking about VC++
for detailed info visit
http://www.codeproject.com/internet/