WSADATA data;
WORD version=MAKEWORD(2,0);
if (WSAStartup(version, &data) == SOCKET_ERROR)
{
printf("Error in Startup the DLL Library");
WSACleanup();
return ;
}
hostent *phost;
char pHName[120];
printf("Enter the Host Name:\t");
scanf("%s", pHName);
printf("\n");
phost= gethostbyname(pHName);
if (phost==NULL)
{
printf("Can not found the Host %s\n",pHName);
return ;
}