7 #ifndef WIN32_LEAN_AND_MEAN
8 #define WIN32_LEAN_AND_MEAN
16 #include <sys/socket.h>
17 #include <netinet/in.h>
18 #include <netinet/tcp.h>
19 #include <arpa/inet.h>
Definition Http2Session.hpp:21
void initialize_platform_networking()
constexpr socket_t INVALID_SOCKET_FD
Definition PlatformSocket.hpp:40
std::string format_ip(const sockaddr *addr)
std::string peer_ip(socket_t fd)
The connected peer's IP address (see format_ip), or "" if unknown.
void shutdown_socket(socket_t fd)
::ssize_t ssize_t
Definition PlatformSocket.hpp:44
void cleanup_platform_networking()
bool is_would_block_error()
Definition PlatformSocket.hpp:47
int socket_t
Definition PlatformSocket.hpp:39
::socklen_t socklen_t
Definition PlatformSocket.hpp:43
constexpr int SOCKET_ERROR_VAL
Definition PlatformSocket.hpp:41
int get_last_socket_error()
Definition PlatformSocket.hpp:46
void set_non_blocking(socket_t fd)
void close_socket(socket_t fd)