c++ - Questions about Winsock 2 -


wsadata wsadata; socket connectsocket = invalid_socket; iresult = wsastartup(makeword(2,2), &wsadata); 

wsadata info, info specifically?

wsastartup function initiate ws2_32.dll. difference between initiating ws2_32.dll , socket?

wsadata info, info specifically?

please read documentation, tells in wsadata , means:

wsastartup function

wsadata structure

wsastartup function initiate ws2_32.dll.

correct.

what difference between initiating ws2_32.dll , socket?

ws2_32.dll winsock library itself. socket handle specific socket connection. socket allocated socket() or wsasocket() function, , released closesocket() function.


Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -