inet::Socket
- Inherits: fs::FileAccess< Socket >
public
- Inherits: inet::SocketFlags
public
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:
- SocketAddress &
address
#
accept(SocketAddress &address) constSocket inet::Socket::accept (SocketAddress &address) const
Type: Socket
Parameters:
- SocketAddress &
address
#
bind(const SocketAddress &address)inline
Socket & inet::Socket::bind (const SocketAddress &address)
Type: Socket &
Parameters:
- const SocketAddress &
address
#
bind(const SocketAddress &address) constconst Socket & inet::Socket::bind (const SocketAddress &address) const
Type: const Socket &
Parameters:
- const SocketAddress &
address
#
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:
- const SocketAddress &
address
int
backlog
#
bind_and_listen(const SocketAddress &address, int backlog=4) constconst Socket & inet::Socket::bind_and_listen (const SocketAddress &address, int backlog=4) const
Type: const Socket &
Parameters:
- const SocketAddress &
address
int
backlog
#
connect(const SocketAddress &address)inline
Socket & inet::Socket::connect (const SocketAddress &address)
Type: Socket &
Parameters:
- const SocketAddress &
address
#
connect(const SocketAddress &address) constconst Socket & inet::Socket::connect (const SocketAddress &address) const
Type: const Socket &
Parameters:
- const SocketAddress &
address
#
get_sock_name() constSocketAddress inet::Socket::get_sock_name () const
Type: SocketAddress
#
is_valid() constinline
bool inet::Socket::is_valid () const
Type: bool
#
operator=(Socket &&socket)inline
Socket & inet::Socket::operator= (Socket &&socket)
Type: Socket &
Parameters:
- Socket &&
socket
#
receive_from(var::View data) constinline
SocketAddress inet::Socket::receive_from (var::View data) const
Type: SocketAddress
Parameters:
- var::View
data
#
receive_from(void *buf, int nbyte) constSocketAddress 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:
- const SocketAddress &
socket_address
const void *
buf
int
nbyte
#
send_to(const SocketAddress &socket_address, const void *buf, int nbyte) constconst Socket & inet::Socket::send_to (const SocketAddress &socket_address, const void *buf, int nbyte) const
Type: const Socket &
Parameters:
- const SocketAddress &
socket_address
const void *
buf
int
nbyte
#
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:
- const SocketAddress &
socket_address
- var::View
data
#
send_to(const SocketAddress &socket_address, var::View data) constinline
const Socket & inet::Socket::send_to (const SocketAddress &socket_address, var::View data) const
Type: const Socket &
Parameters:
- const SocketAddress &
socket_address
- var::View
data
#
set_option(const SocketOption &option)inline
Socket & inet::Socket::set_option (const SocketOption &option)
Type: Socket &
Parameters:
- const SocketOption &
option
#
set_option(const SocketOption &option) constconst Socket & inet::Socket::set_option (const SocketOption &option) const
Type: const Socket &
Parameters:
- const SocketOption &
option
#
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()) constconst 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