Skip to content

Windows

Isaac Avram edited this page Dec 6, 2018 · 2 revisions

Windows requires WSAStartup to be called before using Winsock. You may choose to do that manually when using sockets.cpp, but this library provides a cross-platform way to do this automatically.

sockets::abl::win32::WinSockDLL

Constructor

explicit WinSockDLL(unsigned char hi = 2, unsigned char low = 2)

Description

This class has no methods or public fields.

On Windows, instantiating a WinSockDLL object calls WSAStartup(), on UNIX platforms this does nothing.

On Windows, destroying a WinSockDLL object calls WSACleanup(), on UNIX platforms this does nothing.

Clone this wiki locally