hi....
Accroding to MSDN:
http://msdn.microsoft.com/library/de...nd_servers.asp
the accept() method can be used such as:
accept(ListenSocket, NULL, NULL);
how ever I tried:
my program hang/jam at:Code:ClientSocket = accept(ListenSocket, NULL, NULL); if (ClientSocket == INVALID_SOCKET) { printf("accept failed: %d\n", WSAGetLastError()); closesocket(ListenSocket); WSACleanup(); return 1; }
ClientSocket = accept(ListenSocket, NULL, NULL);
so therefore accept(ListenSocket, NULL, NULL); cannot be used in such a way?
Thanks