Net++
A class-based C++ encapsulation over the POSIX Sockets API
Loading...
Searching...
No Matches
networking.hpp File Reference
#include <netdb.h>
#include <sys/socket.h>
#include <cstddef>

Go to the source code of this file.

Namespaces

namespace  networking
 
namespace  networking::constants
 
namespace  networking::constants::invalid_values
 
namespace  networking::constants::flags
 
namespace  networking::constants::domain
 
namespace  networking::constants::socket_type
 

Variables

constexpr int32_t networking::constants::invalid_values::invalid_socket_fd { -1 }
 
constexpr int networking::constants::flags::binding_socket = AI_PASSIVE
 
constexpr int networking::constants::domain::ipv4 = AF_INET
 
constexpr int networking::constants::domain::ipv6 = AF_INET6
 
constexpr int32_t networking::constants::domain::unspecified_domain = AF_UNSPEC
 
constexpr int networking::constants::socket_type::tcp = SOCK_STREAM
 
constexpr int networking::constants::socket_type::udp = SOCK_DGRAM
 
constexpr int networking::constants::socket_type::raw = SOCK_RAW