Sorry for double-posting here, I am not so sure what the rules on this forum are concerning that, but I really can't figure out what is wrong with my code, and this is kind of hindering the development/testing progress of what I'm currently working on.
I have checked out the SFML source code, and there are lots of possible causes for the sf::Socket::Error return value, so I couldn't really figure out the exact reason for why this error is occuring. Does anyone else here constantly get this problem when trying to work with non-blocking TCP sockets; i.e. is it a bug in SFML's Winsock implementation, a mistake in my code or just my Windows acting up?
A possible workaround for this is to set the socket as blocking when connecting, and then switch to non-blocking mode when sending/receiving. This only functions as a temporary workaround though, as it will lock up the application during the process of connecting, unless a thread is used. Besides, if it actually isn't just an anomaly on my system, it is probably supposed to work as the developer would expect it to rather than having to use a workaround like that.
TL;DR: Am I the only one having being unable to use connect() on non-blocking TCP sockets on Windows?