4#ifndef GREM_NETWORKING_PLATFORM_HPP
5#define GREM_NETWORKING_PLATFORM_HPP
13#define _WINSOCK_DEPRECATED_NO_WARNINGS
19#pragma comment(lib, "Ws2_32.lib")
27#include <netinet/in.h>
29#include <sys/socket.h>
34inline constexpr int SD_RECEIVE = SHUT_RD;
35inline constexpr int SD_SEND = SHUT_WR;
36inline constexpr int SD_BOTH = SHUT_RDWR;
40inline constexpr int INVALID_SOCKET = -1;
42inline int closesocket(SOCKET handle) {
Definition Endpoint.hpp:28
void ensurePlatformInitialized(std::error_code &errorCode)
Initialize the underlying platform of the native socket API if it has not already been initialized.