|
Orbit Framework 2.0.0
A high-performance asynchronous C++20 HTTP server framework.
|
#include <orbit/legacy_namespaces.hpp>#include <string>#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>

Go to the source code of this file.
Namespaces | |
| namespace | orbit |
| namespace | orbit::network |
Typedefs | |
| using | orbit::network::socket_t = int |
| using | orbit::network::socklen_t = ::socklen_t |
| using | orbit::network::ssize_t = ::ssize_t |
Functions | |
| int | orbit::network::get_last_socket_error () |
| bool | orbit::network::is_would_block_error () |
| void | orbit::network::initialize_platform_networking () |
| void | orbit::network::cleanup_platform_networking () |
| void | orbit::network::close_socket (socket_t fd) |
| void | orbit::network::set_non_blocking (socket_t fd) |
| void | orbit::network::shutdown_socket (socket_t fd) |
| std::string | orbit::network::format_ip (const sockaddr *addr) |
| std::string | orbit::network::peer_ip (socket_t fd) |
| The connected peer's IP address (see format_ip), or "" if unknown. | |
Variables | |
| constexpr socket_t | orbit::network::INVALID_SOCKET_FD = -1 |
| constexpr int | orbit::network::SOCKET_ERROR_VAL = -1 |