Zusi 3 TCP Protocol Library
An implementation of the Zusi 3 TCP protocol in C++.
Public Member Functions | Protected Attributes | List of all members
zusi::Connection Class Reference

Parent class for a connection. More...

#include <Zusi3TCP.h>

Inherited by zusi::ClientConnection.

Public Member Functions

 Connection (Socket *socket)
 Create connection which will communicate over socket. More...
 
bool receiveMessage (Node &dest) const
 Receive a message.
 
bool sendMessage (Node &src)
 Send a message.
 

Protected Attributes

Socketm_socket
 

Detailed Description

Parent class for a connection.

Constructor & Destructor Documentation

zusi::Connection::Connection ( Socket socket)
inline

Create connection which will communicate over socket.

Parameters
socketThe socket - class does not take ownership of it

The documentation for this class was generated from the following files: