adapnex::core::TCPConnection
Represents a TCP connection.
Synopsis
Declared in <adapnex/core/network.h>
class TCPConnection
: public boost::noncopyable
Member Functions
Name |
Description |
|
Destructor |
|
Closes the connection. |
|
Connects to the specified host and port. |
|
Connects to the specified IPv4 address and port. |
|
Checks if the connection is currently established. |
|
Read from the connection. |
|
Read from the connection with separate byte and total timeouts. |
|
Reconnects to the previously specified endpoint. |
|
Write to the connection. |
Static Member Functions
Name |
Description |
Creates a TCPConnection instance. Does not connect the socket. Call one of the Connect() methods to connect. |
|
Creates a TCPConnection instance and connects to the specified IPv4 address and port. |
|
Creates a TCPConnection instance and connects to the specified host and port. |
Created with MrDocs