-
Notifications
You must be signed in to change notification settings - Fork 1
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.
explicit WinSockDLL(unsigned char hi = 2, unsigned char low = 2)
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.