Zusi 3 TCP Protocol Library
An implementation of the Zusi 3 TCP protocol in C++.
|
Abstract interface for a socket. More...
#include <Zusi3TCP.h>
Inherited by zusi::DebugSocket, and zusi::WinsockBlockingSocket.
Public Member Functions | |
virtual int | ReadBytes (void *dest, int bytes)=0 |
Try to read bytes into dest from socket. More... | |
virtual int | WriteBytes (const void *src, int bytes)=0 |
Try to write bytes from src to socket. More... | |
Abstract interface for a socket.
|
pure virtual |
Try to read bytes into dest from socket.
Method should block until all requested bytes are read, or the stream ends
dest | Data buffer to write to |
bytes | Number of bytes to read |
Implemented in zusi::WinsockBlockingSocket, and zusi::DebugSocket.
|
pure virtual |
Try to write bytes from src to socket.
src | Data buffer to read from |
bytes | Number of bytes to read |
Implemented in zusi::WinsockBlockingSocket, and zusi::DebugSocket.