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

Serialization of struct

Suppose i have a struct whose member values i want to send over the network to another system using winsock 2. …

c++ serialization deserialization winsock2
undefined reference to `__imp_WSACleanup'

This is my first program with winsock. As you can see, I've #include <winsock2.h> and linked ws2_32.…

c++ c winsock2
Boost::asio winsock and winsock 2 compatibility issue

My project uses windows.h in which winsock.h is used, and I need to include boost:assio which uses …

c++ boost-asio winsock c-preprocessor winsock2
WINSOCK - Setting a timeout for a connection attempt on a non existing IP?

I am developing a RTSP Source filter in C++, and I am using WINSOCK 2.0 - blocking socket. When I create …

c++ winsock2
Can't include Winsock2.h in MSVC 2010

I cannot include WinSock2.h in a msvc++2010 project. At first I though it was something I was doing wrong, …

visual-c++ winsock2 visual-studio-2010
socket() return -1 but errno 0

I tried to create a UDP socket on mingw, but socket() returns -1, with errno = 0. Strange. I have included winsock2.…

c sockets mingw codeblocks winsock2
Flush a socket in C++

I tried to flush a socket after calling to send function in c++. I used winsock2.h library. I need …

c++ sockets network-programming winsock2
API using sockaddr_storage

I'm trying to do some IP agnostic coding and as suggested by various sources I tried to use sockaddr_storage. …

sockets winsock2
Problem using Connect(), send(), recv, with UDP sockets

For my Uni assignment I have to create a fast action paced networked game and so have chosen to use …

c++ c winsock2
ws2_32.lib vs. libws2_32.a, what's the difference and how to link libws2_32 to NB project?

I use NetBeans, Windows and Cygwin with g++ compiler. I'm examining Windows Sockets 2. I do everything that is written in …

c++ dll netbeans linker winsock2