Skip to main content

inet::Socket

Functions

Socket()#

inet::Socket::Socket ()

Socket(const SocketAddress &socket_address)#

explicit

inet::Socket::Socket (const SocketAddress &socket_address)

Socket(Domain domain, Type type=Type::stream, Protocol protocol=Protocol::ip)#

explicit

inet::Socket::Socket (Domain domain, Type type=Type::stream, Protocol protocol=Protocol::ip)

Socket(Socket &&socket)#

inline

inet::Socket::Socket (Socket &&socket)

~Socket()#

virtual inet::Socket::~Socket ()

accept(SocketAddress &address)#

inline

Socket inet::Socket::accept (SocketAddress &address)

Type: Socket

Parameters:

accept(SocketAddress &address) const#

Socket inet::Socket::accept (SocketAddress &address) const

Type: Socket

Parameters:

bind(const SocketAddress &address)#

inline

Socket & inet::Socket::bind (const SocketAddress &address)

Type: Socket &

Parameters:

bind(const SocketAddress &address) const#

const Socket & inet::Socket::bind (const SocketAddress &address) const

Type: const Socket &

Parameters:

bind_and_listen(const SocketAddress &address, int backlog=4)#

inline

Socket & inet::Socket::bind_and_listen (const SocketAddress &address, int backlog=4)

Type: Socket &

Parameters:

bind_and_listen(const SocketAddress &address, int backlog=4) const#

const Socket & inet::Socket::bind_and_listen (const SocketAddress &address, int backlog=4) const

Type: const Socket &

Parameters:

connect(const SocketAddress &address)#

inline

Socket & inet::Socket::connect (const SocketAddress &address)

Type: Socket &

Parameters:

connect(const SocketAddress &address) const#

const Socket & inet::Socket::connect (const SocketAddress &address) const

Type: const Socket &

Parameters:

get_sock_name() const#

SocketAddress inet::Socket::get_sock_name () const

Type: SocketAddress

is_valid() const#

inline

bool inet::Socket::is_valid () const

Type: bool

operator=(Socket &&socket)#

inline

Socket & inet::Socket::operator= (Socket &&socket)

Type: Socket &

Parameters:

receive_from(var::View data) const#

inline

SocketAddress inet::Socket::receive_from (var::View data) const

Type: SocketAddress

Parameters:

receive_from(void *buf, int nbyte) const#

SocketAddress inet::Socket::receive_from (void *buf, int nbyte) const

Type: SocketAddress

Parameters:

  • void * buf
  • int nbyte

send_to(const SocketAddress &socket_address, const void *buf, int nbyte)#

inline

Socket & inet::Socket::send_to (const SocketAddress &socket_address, const void *buf, int nbyte)

Type: Socket &

Parameters:

send_to(const SocketAddress &socket_address, const void *buf, int nbyte) const#

const Socket & inet::Socket::send_to (const SocketAddress &socket_address, const void *buf, int nbyte) const

Type: const Socket &

Parameters:

send_to(const SocketAddress &socket_address, var::View data)#

inline

Socket & inet::Socket::send_to (const SocketAddress &socket_address, var::View data)

Type: Socket &

Parameters:

send_to(const SocketAddress &socket_address, var::View data) const#

inline

const Socket & inet::Socket::send_to (const SocketAddress &socket_address, var::View data) const

Type: const Socket &

Parameters:

set_option(const SocketOption &option)#

inline

Socket & inet::Socket::set_option (const SocketOption &option)

Type: Socket &

Parameters:

set_option(const SocketOption &option) const#

const Socket & inet::Socket::set_option (const SocketOption &option) const

Type: const Socket &

Parameters:

shutdown(const fs::OpenMode how=fs::OpenMode::read_write())#

inline

Socket & inet::Socket::shutdown (const fs::OpenMode how=fs::OpenMode::read_write())

Type: Socket &

Parameters:

  • const fs::OpenMode how

shutdown(const fs::OpenMode how=fs::OpenMode::read_write()) const#

const Socket & inet::Socket::shutdown (const fs::OpenMode how=fs::OpenMode::read_write()) const

Type: const Socket &

Parameters:

  • const fs::OpenMode how

Static Functions

finalize()#

static int inet::Socket::finalize ()

Type: int

initialize()#

static int inet::Socket::initialize ()

Type: int