8 #ifndef FACEBOOK_NETWORK_TCP_CLIENT_H
9 #define FACEBOOK_NETWORK_TCP_CLIENT_H
50 bool connect(
const unsigned int timeout = 1000u)
override;
This class wraps an address number with 32 bits.
Definition: Address4.h:26
This class is the base class for all connection oriented clients.
Definition: ConnectionOrientedClient.h:28
This class wraps a port number with 16 bits.
Definition: Port.h:26
This class implements a TCP client.
Definition: TCPClient.h:27
~TCPClient() override
Destructs a TCP client.
bool connect(const unsigned int timeout=1000u) override
Reconnects the client by the usage of the most recent address and port.
bool buildSocket()
Build the TCP socket.
bool disconnect() override
Disconnects the client.
TCPClient()
Creates a new TCP client.
bool connect(const Address4 &address, const Port &port, const unsigned int timeout=1000u) override
Connects to a TCP server.
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15