Orbit Framework
An ultra-modern, asynchronous, cross-platform C++ Web Framework.
Loading...
Searching...
No Matches
PlatformSocket.hpp File Reference
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <fcntl.h>
#include <cerrno>
#include <netdb.h>
Include dependency graph for PlatformSocket.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  network
 

Typedefs

using network::socket_t = int
 
using network::socklen_t = ::socklen_t
 
using network::ssize_t = ::ssize_t
 

Functions

int network::get_last_socket_error ()
 
bool network::is_would_block_error ()
 
void network::initialize_platform_networking ()
 
void network::cleanup_platform_networking ()
 
void network::close_socket (socket_t fd)
 
void network::set_non_blocking (socket_t fd)
 

Variables

constexpr socket_t network::INVALID_SOCKET_FD = -1
 
constexpr int network::SOCKET_ERROR_VAL = -1