Hello , i have a simple server that accepts clients. The client connect to the server. The first thing the server will do the following:
- grab the client socket
- create a thread for client
- call ::recv();
the problem here is that recv returnes -1 WSAGetLastError returnes WSAENOTSOCK: (Socket operation on nonsocket.) Microsoft: "An operation was attempted on something that is not a socket. Either the socket handle parameter did not reference a valid socket, or for select, a member of an fd_set was not valid." i can't really figure out what the problem really is.
the client has the socket still valid , and any recv the client dose will instantly return
Thanks, Raxvan