|
Open Model Railroad Network (OpenMRN)
|
Shared base class for thread-based and select-based hub devices. More...
#include <Hub.hxx>
Public Member Functions | |
| virtual void | report_write_error ()=0 |
| Callback from the write flow when it encounters an error. | |
| virtual void | report_read_error ()=0 |
| Callback from the readflow when it encounters an error. | |
Public Member Functions inherited from FdHubPortInterface | |
| int | fd () |
Public Member Functions inherited from Service | |
| Service (ExecutorBase *e) | |
| Constructor. | |
| ~Service () | |
| Destructor. | |
| ExecutorBase * | executor () |
Protected Member Functions | |
| FdHubPortService (ExecutorBase *exec, int fd) | |
| Constructor. | |
Protected Member Functions inherited from FdHubPortInterface | |
| FdHubPortInterface (int fd) | |
Protected Attributes | |
| BarrierNotifiable | barrier_ |
| This notifiable will be called (if not NULL) upon read or write error. | |
Protected Attributes inherited from FdHubPortInterface | |
| int | fd_ {-1} |
| The device file descriptor. | |
Friends | |
| template<class HFlow > | |
| class | HubDeviceSelectReadFlow |
| class | openlcb::FdToTcpParser |
Shared base class for thread-based and select-based hub devices.
|
inlineprotected |
|
pure virtual |
Callback from the readflow when it encounters an error.
Implemented in HubDeviceSelect< HFlow, ReadFlow >.
|
pure virtual |
Callback from the write flow when it encounters an error.
Implemented in HubDeviceSelect< HFlow, ReadFlow >.
|
friend |
|
friend |
|
protected |