Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
ConnectionClient Class Referenceabstract

Abstract base class for the Hub's connections. More...

#include <ClientConnection.hxx>

Inheritance diagram for ConnectionClient:
GCFdConnectionClient DeviceConnectionClient UpstreamConnectionClient

Public Member Functions

virtual bool ping ()=0
 Test the connection whether it is alive; establish the connection if it is dead.
 
virtual int fd ()
 

Detailed Description

Abstract base class for the Hub's connections.

Definition at line 48 of file ClientConnection.hxx.

Constructor & Destructor Documentation

◆ ~ConnectionClient()

virtual ConnectionClient::~ConnectionClient ( )
inlinevirtual

Definition at line 59 of file ClientConnection.hxx.

Member Function Documentation

◆ fd()

virtual int ConnectionClient::fd ( )
inlinevirtual
Returns
the file descriptor, if this connection has one, or -1 if the connection is down or doesn't have an fd.

Reimplemented in GCFdConnectionClient.

Definition at line 57 of file ClientConnection.hxx.

◆ ping()

virtual bool ConnectionClient::ping ( )
pure virtual

Test the connection whether it is alive; establish the connection if it is dead.

Returns
true if there is a live connection.

Implemented in GCFdConnectionClient.


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