[Dev-C++] Get socket with socket function : precisions
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Alain P. <ala...@ge...> - 2003-10-29 20:40:22
|
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. |