wsaData : undeclared identifier
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
fakespike
Junior Poster in Training
58 posts since Jul 2003
Reputation Points: 10
Solved Threads: 0
This was part of a duplicate post. More information is available at [thread]1183[/thread]
cscgal
The Queen of DaniWeb
19,421 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 229