i get a error that i cant figure out any help?
void main()
{
// Initialize WinSock
int wsaret=WSAStartup(0x101,&wsaData);
if(wsaret)
return;
//Create the SOCKET
SOCKET conn;
conn=socket(AF_INET,SOCK_STREAM,IPPROTO_TCP);
if(conn==INVALID_SOCKET)
return;
//clean up mess
closesocket(conn);
WSACleanup();
}
i get this error:
wsaData : undeclared identifier
any help