Top "Winsock2" questions

Windows Sockets 2 (Winsock) enables programmers to create advanced Internet, intranet, and other network-capable applications to transmit application data across the wire, independent of the network protocol being used

How can I stop/restart listening and accepting on a server socket in Winsock2 C++?

I made a socket (Winsock2) in Visual Studio Pro C++ to listen on a port for connections (TCP). It works …

c++ winsock2 listen
TCP Winsock: accept multiple connections/clients

I tried to can multiply clients, and send it to each one. But it working only for one, after one …

c++ sockets winapi tcp winsock2
Are close() and closesocket() interchangable?

I've seen a lot of answers here that say to use close() to destroy a socket but the guide I …

c++ sockets networking winsock2
Why am I getting linker errors for ws2_32.dll in my C program?

I am writing my program in Visual Studio 2010. I am unable to link a file named ws2_32.dll with my …

c visual-studio winapi linker-errors winsock2
Cannot include both files (WinSock2, Windows.h)

I'm having a problem including both files. Now, I know I need to either include Winsock2 first, then windows.h, …

c sockets winapi winsock2
Is it possible to tell if WSAStartup has been called in a process?

I've started writing an ActiveX control that makes use of sockets. Applications that use this control may or may not …

windows winsock2 windows-socket-api wsastartup
Winsock2 - How to use IOCP on client side

I’ve recently started learning IOCP on Windows and been reading the following article: http://www.codeproject.com/Tips/95363/Another-TCP-echo-server-using-IOCP …

c++ windows sockets visual-c++ winsock2
11001 returned on all calls to getaddrinfo()

Having an issue connecting to a device on my network. Whenever I call getaddrinfo() it returns 11001. I have checked this …

c++ c windows sockets winsock2
How to use getaddrinfo()?

Im trying to make a simple program that takes in a string like www.google.com and returns the ip …

winsock winsock2 getaddrinfo
TCP Hole Punching

I'm trying to implement TCP hole punching with windows socket using mingw toolchain. I think the process is right but …

windows tcp network-protocols winsock2 hole-punching