If we opened
on one side, can we connect to it withCode:SOCKET sock = WSASocket(AF_INET, SOCK_STREAM, IPPROTO_TCP, 0, 0, 0);
on the client side or it must be same type on both side?Code:SOCKET sock = socket(AF_INET,SOCK_STREAM,0);
If we opened
on one side, can we connect to it withCode:SOCKET sock = WSASocket(AF_INET, SOCK_STREAM, IPPROTO_TCP, 0, 0, 0);
on the client side or it must be same type on both side?Code:SOCKET sock = socket(AF_INET,SOCK_STREAM,0);
Using Windows 10 with Code Blocks and MingW.
It's just a different name for the same functionality.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
Thanks Salem!
Using Windows 10 with Code Blocks and MingW.