8 #ifndef META_OCEAN_TEST_TESTNETWORK_TEST_PACKAGED_TCP_CLIENT_H
9 #define META_OCEAN_TEST_TESTNETWORK_TEST_PACKAGED_TCP_CLIENT_H
49 void onReceive(
const void* data,
const size_t size);
92 unsigned int numberConnectionRequests_ = 0u;
95 unsigned int numberDisconnections_ = 0u;
108 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
static constexpr ConnectionId invalidConnectionId()
Returns an invalid connection id.
Definition: ConnectionOrientedServer.h:231
This class wraps a port number with 16 bits.
Definition: Port.h:26
This class implements a receiver for clients.
Definition: TestPackagedTCPClient.h:41
std::vector< Buffer > buffers_
The memory buffers.
Definition: TestPackagedTCPClient.h:54
void onReceive(const void *data, const size_t size)
Event function for receiving data.
This class implements a receiver for servers.
Definition: TestPackagedTCPClient.h:61
bool onConnectionRequest(const Network::Address4 &senderAddress, const Network::Port &senderPort, const Network::PackagedTCPServer::ConnectionId connectionId)
Event function for connection requests.
std::vector< Buffer > buffers_
The memory buffers.
Definition: TestPackagedTCPClient.h:98
void onReceive(const Network::PackagedTCPServer::ConnectionId connectionId, const void *data, const size_t size)
Event function for receiving data.
void onConnectionDisconnected(const Network::PackagedTCPServer::ConnectionId connectionId)
Event function for a disconnected connection.
This class implements test for PackagedTCPClient.
Definition: TestPackagedTCPClient.h:29
static bool test(const double testDuration)
Tests all PackagedTCPClient functions.
static bool testSendReceive(const double testDuration)
Tests sending and receiving data.
std::vector< uint8_t > Buffer
Definition of a vector holding bytes.
Definition: TestPackagedTCPClient.h:35
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15