31 #ifndef SERUT_TCPSERIALIZER_H
33 #define SERUT_TCPSERIALIZER_H
35 #include "serutconfig.h"
64 bool readBytes(
void *pBuffer,
size_t amount);
65 bool writeBytes(
const void *pBuffer,
size_t amount);
67 nut::TCPSocket *m_pSocket;
Generic serialization interface.
Definition: serializationinterface.h:58
Serializer which can be used to read from and write to a TCP connection.
Definition: tcpserializer.h:49
nut::TCPSocket * getSocket()
Returns the socket which is being used for communication.
Definition: tcpserializer.h:62
TCPSerializer(nut::TCPSocket *pSocket, bool deleteSocket)
Construct an instance.