Inheritance Graph
graph BT
TCPConnection
TCPConnection --> ReferenceCounter
click TCPConnection "classUtil_1_1Network_1_1TCPConnection"
click ReferenceCounter "classUtil_1_1ReferenceCounter"
Description
TCP Connection between two endpoints.
State
Data handling
Public Static Functions
Public Functions
Documentation
function
Util::Network::TCPConnection::isOpen
Defined in Util/Network/NetworkTCP.h:60
function
Util::Network::TCPConnection::isClosed
Defined in Util/Network/NetworkTCP.h:61
function
Util::Network::TCPConnection::close
Defined in Util/Network/NetworkTCP.h:62
function
Util::Network::TCPConnection::sendData
|
|
|
|
|
|
bool sendData( |
const std::vector< uint8_t > & |
data ) |
Defined in Util/Network/NetworkTCP.h:79
function
Util::Network::TCPConnection::sendString
Note: The string should end with a termination symbol, e.g. 0 Otherwise it can’t be extracted properly.
Defined in Util/Network/NetworkTCP.h:82
function
Util::Network::TCPConnection::receiveData
Returns all received data as a std::vector Object or nullptr if nothing was received.
Defined in Util/Network/NetworkTCP.h:86
function
Util::Network::TCPConnection::receiveData
Returns numBytes many bytes of received data as std::vector Object or an empty array if less data was received.
Defined in Util/Network/NetworkTCP.h:90
function
Util::Network::TCPConnection::receiveString
Returns a string ending withdelimiter
or “” if no delimiter is found.
Defined in Util/Network/NetworkTCP.h:93
function
Util::Network::TCPConnection::getAvailableDataSize
Returns the number of bytes in the input buffer
Defined in Util/Network/NetworkTCP.h:96
function
Util::Network::TCPConnection::connect
Tries to open a connection to a TCP-Server at given address.
Returns
TCPConnection if successful, throws a runtime_error on failure
Defined in Util/Network/NetworkTCP.h:45
function
Util::Network::TCPConnection::~TCPConnection
Defined in Util/Network/NetworkTCP.h:47
function
Util::Network::TCPConnection::getLastActiveTime
Defined in Util/Network/NetworkTCP.h:49
function
Util::Network::TCPConnection::getRemoteIp
Defined in Util/Network/NetworkTCP.h:50