Zusi 3 TCP Protocol Library
An implementation of the Zusi 3 TCP protocol in C++.
|
Dummy socket for debug purposes. More...
#include <DebugSocket.h>
Inherits zusi::Socket.
Public Member Functions | |
virtual int | ReadBytes (void *dest, int bytes) |
Try to read bytes into dest from socket. More... | |
virtual int | WriteBytes (const void *src, int bytes) |
Try to write bytes from src to socket. More... | |
Dummy socket for debug purposes.
ReadBytes() has no function. WriteBytes() prints the data to the console.
|
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 |
Implements zusi::Socket.
|
virtual |
Try to write bytes from src to socket.
src | Data buffer to read from |
bytes | Number of bytes to read |
Implements zusi::Socket.