8#ifndef META_OCEAN_TEST_TESTNETWORK_TEST_PACKAGED_TCP_CLIENT_H
9#define META_OCEAN_TEST_TESTNETWORK_TEST_PACKAGED_TCP_CLIENT_H
51 void onReceive(
const void* data,
const size_t size);
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:238
This class wraps a port number with 16 bits.
Definition Port.h:26
This class implements a receiver for clients.
Definition TestPackagedTCPClient.h:43
std::vector< Buffer > buffers_
The memory buffers.
Definition TestPackagedTCPClient.h:56
void onReceive(const void *data, const size_t size)
Event function for receiving data.
This class implements a receiver for servers.
Definition TestPackagedTCPClient.h:63
bool onConnectionRequest(const Network::Address4 &senderAddress, const Network::Port &senderPort, const Network::PackagedTCPServer::ConnectionId connectionId)
Event function for connection requests.
unsigned int numberConnectionRequests_
The number of connection requests.
Definition TestPackagedTCPClient.h:94
unsigned int numberDisconnections_
The number of disconnections.
Definition TestPackagedTCPClient.h:97
Network::PackagedTCPServer::ConnectionId connectionId_
The id of the latest connection request.
Definition TestPackagedTCPClient.h:91
std::vector< Buffer > buffers_
The memory buffers.
Definition TestPackagedTCPClient.h:100
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:31
std::vector< uint8_t > Buffer
Definition of a vector holding bytes.
Definition TestPackagedTCPClient.h:37
static bool testSendReceive(const double testDuration)
Tests sending and receiving data.
static bool test(const double testDuration, const TestSelector &selector)
Tests all PackagedTCPClient functions.
This class implements a test selector that parses test function strings and determines which tests sh...
Definition TestSelector.h:51
Namespace of the Network Test library.
Definition testnetwork/TestData.h:25
Namespace of the Test library.
Definition LineDetectorHough.h:28
The namespace covering the entire Ocean framework.
Definition Accessor.h:15