4 #include "network_condition_variable.h"
44 int write(
const void *data,
int size);
48 int read(
void *data,
int size);
57 std::shared_ptr<TCPSocket> impl;
Base class for all classes that generate network events.
Definition: network_condition_variable.h:15
void close()
Close connection.
int read(void *data, int size)
Read data from TCP socket.
int write(const void *data, int size)
Write data to TCP socket.
SocketName get_remote_name()
Returns the socket name of the peer end point.
TCP/IP socket connection.
Definition: tcp_connection.h:18
bool is_null() const
Returns true if it is a null object.
Definition: tcp_connection.h:31
Socket name; container class for an IP address and port.
Definition: socket_name.h:45
SocketHandle * get_socket_handle() override
static void init_sockets()
TCPConnection(const std::shared_ptr< TCPSocket > &impl)
SocketName get_local_name()
Returns the socket name of the local end point.
TCPConnection()
Create null object.
TCPConnection(const SocketName &endpoint)
Blocking connect to end point.