8 #ifndef FACEBOOK_NETWORK_PACKAGED_CONNECTIONLESS_CLIENT_H
9 #define FACEBOOK_NETWORK_PACKAGED_CONNECTIONLESS_CLIENT_H
57 inline size_t maximalPackageSize()
const;
77 size_t maximalPackageSize_ = 0;
85 ocean_assert(strlen(message.c_str()) == message.length() && message.c_str()[message.length()] ==
'\0');
This class wraps an address number with 32 bits.
Definition: Address4.h:26
This class is the base class for all clients.
Definition: Client.h:25
This class is the base class for all packaged connectionless clients.
Definition: PackagedConnectionlessClient.h:31
~PackagedConnectionlessClient() override
Destructs a packaged connectionless client object.
size_t maximalPackageSize() const
Returns the maximal size of a single package for this client.
Definition: PackagedConnectionlessClient.h:89
PackagedConnectionlessClient()
Creates a new packaged connectionless client object.
Buffer clientPackageBuffer_
Intermediate buffer storing individual parts of a large message.
Definition: PackagedConnectionlessClient.h:80
SocketResult send(const Address4 &address, const Port &port, const void *data, const size_t size)
Sends data to a specified recipient.
size_t maximalPackageSize_
Maximal package size of this connectionless socket (including the header).
Definition: PackagedConnectionlessClient.h:77
This class is the base class for all packaged sockets.
Definition: PackagedSocket.h:31
uint32_t MessageId
Definition of a message id.
Definition: PackagedSocket.h:185
This class wraps a port number with 16 bits.
Definition: Port.h:26
Address4 address() const
Returns the own address of this socket.
std::vector< uint8_t > Buffer
Definition of a vector holding 8 bit values.
Definition: Socket.h:76
SocketResult
Definition of individual result values.
Definition: Socket.h:62
Port port() const
Returns the own port of this socket.
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15