8 #ifndef META_OCEAN_TEST_TESTNETWORK_TEST_TCP_CLIENT_H
9 #define META_OCEAN_TEST_TESTNETWORK_TEST_TCP_CLIENT_H
69 unsigned int numberConnectionRequests_ = 0u;
72 unsigned int numberDisconnections_ = 0u;
85 static bool test(
const double testDuration);
This class wraps an address number with 32 bits.
Definition: Address4.h:26
unsigned int ConnectionId
Definition of a connection id.
Definition: ConnectionOrientedServer.h:34
This class wraps a port number with 16 bits.
Definition: Port.h:26
This class implements a receiver.
Definition: TestTCPClient.h:41
void onReceive(const Network::TCPServer::ConnectionId connectionId, const void *data, const size_t size)
Event function for receiving data.
void onConnectionDisconnected(const Network::TCPServer::ConnectionId connectionId)
Event function for a disconnected connection.
std::vector< Buffer > buffers_
The memory buffers.
Definition: TestTCPClient.h:75
bool onConnectionRequest(const Network::Address4 &senderAddress, const Network::Port &senderPort, const Network::TCPServer::ConnectionId connectionId)
Event function for connection requests.
This class implements test for TCPClient.
Definition: TestTCPClient.h:29
std::vector< uint8_t > Buffer
Definition of a vector holding bytes.
Definition: TestTCPClient.h:35
static bool testSendReceive(const double testDuration)
Tests sending and receiving data.
static bool test(const double testDuration)
Tests all TCPClient functions.
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15