Skip to main content
GameDev.net gamedev.net
🔒 Locked

Error 10093: WSANOTINITIALISED - Fixed

Started by MrRage Jul 3, 2007 at 2:13 PM 0 replies 5k views
Original Post
MrRage
MrRage
Fixed: Found it - nothing to do with this code actually. I had another thread that did socket stuff and it was causing this issue because WSAStartup() was not called on that thread. I’ve got an issue where my select() function will throw error 10093 on a socket that was working and reviving data. According to MSDN error 10093 = “Returned by any function except WSAStartup() indicating that a successful WSAStartup() has not yet been performed.“ I opened the socket from the client to the server PuttyTel and send some data then left it idle till it crashed. If I manually close PuttyTel the server is fine. The thing that really puzzles me about the error is that it states that my WSAStartup() function failed – I don’t see how if my server was working. select statement:

if ((select(0, &readerSet, &writerSet, NULL, &timeout)) == SOCKET_ERROR) {
// Error 10093 comes up here.
}

[Edited by - MrRage on July 5, 2007 1:26:58 AM]

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.