#include <senf/Socket/Protocols/INet/TCPSocketHandle.hh>
This class is utilized as the protocol class of the ProtocolClientSocketHandle and ProtocolServerSocketHandle via the Socket Handle typedefs above.
Definition at line 81 of file TCPSocketHandle.hh.
Constructors |
|
void | init_client () const |
Create unconnected client socket. |
|
void | init_client (INet4SocketAddress const &address) const |
Create client socket and connect. |
|
void | init_server () const |
Create server socket. |
|
void | init_server (INet4SocketAddress const &address, unsigned backlog=1) const |
Create server socket and listen. |
void senf::TCPv4SocketProtocol:: | ||||
init_client | ( | INet4SocketAddress const & | address | ) |
Create client socket and connect.
Creates a new client socket and connects to the given address.
[in] | address | remote address to connect to |
Definition at line 54 of file TCPSocketHandle.cc.
void senf::TCPv4SocketProtocol:: | ||||
init_client | () | |||
Create unconnected client socket.
Definition at line 44 of file TCPSocketHandle.cc.
void senf::TCPv4SocketProtocol:: | ||||
init_server | ( | INet4SocketAddress const & | address, | |
unsigned |
backlog = 1
|
) | ||
Create server socket and listen.
Creates a new server socket, binds to address end starts listening for new connections with a backlog of backlog connections. It also enables reuseaddr().
[in] | address | address to listen on |
[in] | backlog | size of the listen backlog |
Definition at line 70 of file TCPSocketHandle.cc.
void senf::TCPv4SocketProtocol:: | ||||
init_server | () | |||
Create server socket.
Definition at line 61 of file TCPSocketHandle.cc.