Toolbox snapshot
The Reactive C++ Toolbox
Loading...
Searching...
No Matches
Public Member Functions | List of all members
toolbox::net::Sock Struct Reference

#include <toolbox/net/Socket.hpp>

Inheritance diagram for toolbox::net::Sock:
Inheritance graph
[legend]
Collaboration diagram for toolbox::net::Sock:
Collaboration graph
[legend]

Public Member Functions

 Sock (FileHandle &&sock, int family)
 
 Sock () noexcept=default
 
int family () const noexcept
 
bool is_ip_family () const noexcept
 
std::error_code get_error (std::error_code &ec) const noexcept
 
std::error_code get_error () const
 
int get_rcv_buf (std::error_code &ec) const noexcept
 
int get_rcv_buf () const
 
int get_snd_buf (std::error_code &ec) const noexcept
 
int get_snd_buf () const
 
bool is_tcp_no_delay (std::error_code &ec) const noexcept
 
bool is_tcp_no_delay () const
 
void close ()
 
void set_non_block (std::error_code &ec) noexcept
 
void set_non_block ()
 
void set_rcv_buf (int size, std::error_code &ec) noexcept
 
void set_rcv_buf (int size)
 
void set_reuse_addr (bool enabled, std::error_code &ec) noexcept
 
void set_reuse_addr (bool enabled)
 
void set_snd_buf (int size, std::error_code &ec) noexcept
 
void set_snd_buf (int size)
 

Detailed Description

Definition at line 780 of file Socket.hpp.

Constructor & Destructor Documentation

◆ Sock() [1/2]

toolbox::net::Sock::Sock ( FileHandle &&  sock,
int  family 
)
inline

Definition at line 781 of file Socket.hpp.

◆ Sock() [2/2]

toolbox::net::Sock::Sock ( )
defaultnoexcept

Member Function Documentation

◆ family()

int toolbox::net::Sock::family ( ) const
inlinenoexcept

◆ is_ip_family()

bool toolbox::net::Sock::is_ip_family ( ) const
inlinenoexcept

Definition at line 789 of file Socket.hpp.

◆ get_error() [1/2]

std::error_code toolbox::net::Sock::get_error ( std::error_code &  ec) const
inlinenoexcept

Definition at line 792 of file Socket.hpp.

◆ get_error() [2/2]

std::error_code toolbox::net::Sock::get_error ( ) const
inline

Definition at line 796 of file Socket.hpp.

◆ get_rcv_buf() [1/2]

int toolbox::net::Sock::get_rcv_buf ( std::error_code &  ec) const
inlinenoexcept

Definition at line 798 of file Socket.hpp.

◆ get_rcv_buf() [2/2]

int toolbox::net::Sock::get_rcv_buf ( ) const
inline

Definition at line 802 of file Socket.hpp.

◆ get_snd_buf() [1/2]

int toolbox::net::Sock::get_snd_buf ( std::error_code &  ec) const
inlinenoexcept

Definition at line 804 of file Socket.hpp.

◆ get_snd_buf() [2/2]

int toolbox::net::Sock::get_snd_buf ( ) const
inline

Definition at line 808 of file Socket.hpp.

◆ is_tcp_no_delay() [1/2]

bool toolbox::net::Sock::is_tcp_no_delay ( std::error_code &  ec) const
inlinenoexcept

Definition at line 810 of file Socket.hpp.

◆ is_tcp_no_delay() [2/2]

bool toolbox::net::Sock::is_tcp_no_delay ( ) const
inline

Definition at line 814 of file Socket.hpp.

◆ close()

void toolbox::net::Sock::close ( )
inline

Definition at line 815 of file Socket.hpp.

◆ set_non_block() [1/2]

void toolbox::net::Sock::set_non_block ( std::error_code &  ec)
inlinenoexcept

Definition at line 817 of file Socket.hpp.

Referenced by toolbox::net::StreamConnector< DerivedT >::connect().

◆ set_non_block() [2/2]

void toolbox::net::Sock::set_non_block ( )
inline

Definition at line 818 of file Socket.hpp.

◆ set_rcv_buf() [1/2]

void toolbox::net::Sock::set_rcv_buf ( int  size,
std::error_code &  ec 
)
inlinenoexcept

Definition at line 820 of file Socket.hpp.

◆ set_rcv_buf() [2/2]

void toolbox::net::Sock::set_rcv_buf ( int  size)
inline

Definition at line 824 of file Socket.hpp.

◆ set_reuse_addr() [1/2]

void toolbox::net::Sock::set_reuse_addr ( bool  enabled,
std::error_code &  ec 
)
inlinenoexcept

◆ set_reuse_addr() [2/2]

void toolbox::net::Sock::set_reuse_addr ( bool  enabled)
inline

Definition at line 830 of file Socket.hpp.

◆ set_snd_buf() [1/2]

void toolbox::net::Sock::set_snd_buf ( int  size,
std::error_code &  ec 
)
inlinenoexcept

Definition at line 832 of file Socket.hpp.

◆ set_snd_buf() [2/2]

void toolbox::net::Sock::set_snd_buf ( int  size)
inline

Definition at line 836 of file Socket.hpp.


The documentation for this struct was generated from the following file: