WSAGetLastError() not giving error [Archive] - C Board

PDA

View Full Version : WSAGetLastError() not giving error


Hunter2
08-04-2003, 11:37 AM
Hey everyone, I'm having difficulties again :( I've had this problem (or a similar one) before, but I don't remember what caused it or if I ever figured out what caused it in the first place. So my problem is, I try calling send() and it returns SOCKET_ERROR. Then I call WSAGetLastError() right after, and it returns 0. Earlier, I had the program log just the return of send() and the return value of WSAGetLastError() and it returned WSAENOTCONN, but I couldn't see any reason that it should be disconnected... then I had it log the gcount() of a ifstream before calling send(), and now WSAGetLastError doesnt say theres an error anymore, even though right before it there's an error... does anybody have any ideas? :confused:

Hunter2
08-04-2003, 02:03 PM
Ahh nvm the problem had nothing to do with the sockets, it was actually a problem with a filename containing '/' (!!!). Still dunno why the WSAGetLastError() came up with a WSAENOTCONN though... :rolleyes: