omni::net::socket
NAME

omni::net::socket

A class of omni::net

#include <omni/net/socket.hpp>
class omni::net::socket

MEMBERS

omni::net::socket::socket(omni::net::socket_type type, omni::net::protocol_type protocol)
omni::net::socket::~socket()
omni::net::socket_error omni::net::socket::accept(omni::net::endpoint_descriptor& remote_ep)
omni::net::address_family omni::net::socket::address_family()
omni::net::socket_error omni::net::socket::bind()
uint32_t omni::net::socket::bound_endpoint()
uint16_t omni::net::socket::bound_port()
omni::net::socket_error omni::net::socket::close()
omni::net::socket_error omni::net::socket::connect()
omni::net::socket_error omni::net::socket::connect_host(const std::string& host, uint16_t port)
omni::net::socket_error omni::net::socket::disconnect(bool reuse)
uint32_t omni::net::socket::endpoint()
uint64_t omni::net::socket::hash()
omni::net::socket_error omni::net::socket::ioc(uint32_t op_code, omni::net::xfr_t* val)
bool omni::net::socket::is_bound()
bool omni::net::socket::is_connected()
bool omni::net::socket::is_listening()
bool omni::net::socket::is_open()
bool omni::net::socket::is_shutdown()
omni::net::socket_error omni::net::socket::last_error()
omni::net::socket_error omni::net::socket::listen()
omni::net::socket_t omni::net::socket::native_handle()
omni::net::socket_error omni::net::socket::open()
uint16_t omni::net::socket::port()
omni::net::protocol_type omni::net::socket::protocol()
template < typename T > omni::net::socket_error omni::net::socket::receive(std::vector<T>& buffer, uint32_t& received)
template < typename T > omni::net::socket_error omni::net::socket::receive_from(std::vector<T>& buffer, uint32_t& received)
template < typename T > omni::net::socket_error omni::net::socket::send(const std::vector<T>& buffer, uint32_t& sent)
template < typename T > omni::net::socket_error omni::net::socket::send_to(const std::vector<T>& buffer, uint32_t len, const std::string& ip, uint16_t port, uint32_t& sent)
omni::net::socket_error omni::net::socket::set_blocking_mode(omni::net::blocking_mode mode)
omni::net::socket& omni::net::socket::set_protocol_type(omni::net::protocol_type protocol)
omni::net::socket_error omni::net::socket::shutdown(omni::net::socket_shutdown how)
void omni::net::socket::swap(omni::net::socket& other)
std::string omni::net::socket::to_string()
omni::string_t omni::net::socket::to_string_t()
std::wstring omni::net::socket::to_wstring()
uint64_t omni::net::socket::type()
omni::net::socket_error omni::net::socket::unsafe_receive(char* buffer, uint32_t buffer_size, uint32_t& received)
omni::net::socket_error omni::net::socket::unsafe_receive_from(char* buffer, uint32_t buffer_size, uint32_t& received)
omni::net::socket_error omni::net::socket::unsafe_send(const char* buffer, std::size_t buffer_size, uint32_t& sent)
omni::net::socket_error omni::net::socket::unsafe_send_to(const char* buffer, uint32_t len, const std::string& ip, uint16_t port, uint32_t& sent)
omni::net::socket::operator std::string()
omni::net::socket::operator std::wstring()
friend std::ostream& omni::net::socket::operator<<(std::ostream& s, const omni::net::socket& c)
omni::net::socket::disposing
omni::net::socket::name

SYNOPSIS

The socket class is used to facilitate IP4 (only) network communications.

top

DESCRIPTION

No description.

top