Top "Winsock" questions

In computing, the Windows Sockets API (WSA), which was later shortened to Winsock, is a technical specification that defines how Windows network software should access network services, especially TCP/IP.

Converting C++ TCP/IP applications from IPv4 to IPv6. Difficult? Worth the trouble?

Over the years I've developed a small mass of C++ server/client applications for Windows using WinSock (Routers, Web/Mail/…

c++ tcp winsock ipv6 ipv4
Rejecting a TCP connection before it's being accepted?

There are 3 different accept versions in winsock. Aside from the basic accept which is there for standard compliance, there's also …

tcp winsock
How long does a UDP packet stay at a socket?

If data is sent to the client but the client is busy executing something else, how long will the data …

c windows winapi sockets winsock
Do I need to close a socket?

After sending data over a socket with Winsock, you're supposed to close the connection like this: closesocket(ConnectSocket); WSACleanup(); I'm …

sockets tcp winsock
TCP/IP connection on a specific interface

I'd like to connect to a server using one of two network routes. How would one do this? I've Googled …

c++ winsock
What is the workaround for TCP delayed acknowledgment?

I have shipped an online (grid-based) videogame that uses the TCP protocol to ensure reliable communication in a server-client network …

c# c++ c winsock
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
IP address order in gethostbyname function

Since I got no answer on my previous question, I will rephrase it. What order of IP addresses (in case …

c++ ip winsock windows-server gethostbyname
What exactly do socket's Shutdown, Disconnect, Close and Dispose do?

It's surprisingly hard to find a simple explanation on what these four methods actually do, aimed at network programming newbies. …

c# .net sockets network-programming winsock
C++ - Detours WinSock Hooking

What I am trying to do is use the Detours library to hook into an applications WinSock2 send() and recv() …

c++ winsock recv hook detours