jweinst1
4/5/2020 - 8:40 AM

Include winsock headers and link winsock through a pragma comment

Include winsock headers and link winsock through a pragma comment

#ifdef _WIN32
#  include <WinSock2.h>
#  include <Ws2tcpip.h>
#  pragma comment(lib, "Ws2_32.lib")
#else
// Do something else here for non windows
#endif