Hi all,
I noticed that the errno value doesn't seem to contain the last error.
So I used WSAGetLastError() function to retrieve what happened when
using "socket" function. According to results (WSANOTINITIALISED), it
seems that I have do initialize something when working with socket
under windows. This makes, of course, code less portable due to
specific Windows initialisation... But OK, I did initializsation. The
problem is that now, the error is "WSAEAFNOSUPPORT". Is there so many
differences between linux and windows when creating a socket ? Does
soemone use inet sockets under dev-cpp and have a simple example ?
I am under Win 95 (pretty old, I know...). Perhaps do I ask my
questions to the wrong list (as my problems are not dev-cpp specific
problems). If this is the case, can someone propose me a list where
these questions will better match lists topic ?
Best regards.
|