#include <FileCommPortal.hh>
Inherits CommPortal.
Inherited by NetCommPortal, and SerialCommPortal.
This helper superclass provides common code for messagers with file descriptors.
Public Member Functions | |
FileCommPortal () | |
virtual | ~FileCommPortal () |
bool | init (CommManager *mgr, int fd) |
int | getDescriptor () const |
|
Constructor |
|
Clean it up. Removes the file descriptor from the monitor. Note, this does not close the file descriptor, that should be handled by the super class. |
|
Return the messager file descriptor
|
|
Initialize the file messager. Connect it to a CommManager with a file descriptor. Gets the file monitor instance and registers the file descriptor with it.
Reimplemented in NetCommPortal. |