8 #ifndef FACEBOOK_NETWORK_PACKAGED_TCP_CLIENT_H
9 #define FACEBOOK_NETWORK_PACKAGED_TCP_CLIENT_H
47 size_t onSend(
const void* data,
const size_t size)
override;
53 void onReceived(
const void* data,
const size_t size)
override;
This class implements a memory block.
Definition: PackagedSocket.h:38
This class is the base class for all packaged sockets.
Definition: PackagedSocket.h:31
std::queue< MemoryBlock > MemoryBlockQueue
Definition of a queue holding memory blocks.
Definition: PackagedSocket.h:133
This class implements a TCP client with internal package handling.
Definition: PackagedTCPClient.h:28
void onReceived(const void *data, const size_t size) override
Internal event function for received data.
size_t onSend(const void *data, const size_t size) override
Internal event function to send data.
MemoryBlock currentMemory_
The memory block to be filled.
Definition: PackagedTCPClient.h:61
~PackagedTCPClient() override=default
Destructs a TCP client.
MemoryBlockQueue memoryQueue_
The queue holding all memory blocks recently received and not yet process.
Definition: PackagedTCPClient.h:58
PackagedTCPClient()=default
Creates a new TCP client.
MemoryBlock currentPackageHeaderMemory_
The memory block for the package header.
Definition: PackagedTCPClient.h:64
This class implements a TCP client.
Definition: TCPClient.h:27
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15