I wrote C ++ code and mistakenly missed the name of the WSASocket function. However, my compiler did not raise an error and associated my SOCKET with an integer value of 1 instead of a valid socket.
The code in question should look like this:
this->listener = WSASocket(address->ai_family, address->ai_socktype, address->ai_protocol, NULL, NULL, WSA_FLAG_OVERLAPPED);
But instead, he looked like this:
this->listener = (address->ai_family, address->ai_socktype, address->ai_protocol, NULL, NULL, WSA_FLAG_OVERLAPPED);
Coming from other languages, it looks like it could be some kind of anonymous type. What is the name of this function, in case it is really a function?
What is his purpose?
Itโs hard to find it when you donโt know where to start.
c ++
Michael J. Gray Nov 18 '14 at 10:12 2014-11-18 10:12
source share