Trying to create a socket on windows like this:
SOCKET sock; if((sock = socket(AF_INET, SOCK_STREAM, 0)) == -1) cout << "socket() error: " << errno << "\n";
Included in the body conditions. Conclusion:
socket () error: 34
The code is exactly like that because I wanted to maintain compatibility with Linux. Please tell me what could be wrong
strerror(errno)
will tell you what's the matter ... - Fat-Zer