#include <SerialCommPortal.hh>
Inherits FileCommPortal.
The concrete subclass of CommPortal which manages communications via a serial line. It manages a serial device that messages can be received from and sent to to a single SerialRemoteManager.
| Public Member Functions | |
| virtual | ~SerialCommPortal () | 
| bool | init (CommManager *mgr, const char *device, struct termios *tflags=NULL) | 
| virtual Message * | receiveMsg () | 
| virtual bool | releaseMsg (Message *message) | 
| virtual bool | flush () | 
| SerialRemoteManager * | serialRemote () const | 
| bool | sendMsg (Message *msg, unsigned char *preamble, int preamble_size) | 
| Static Public Member Functions | |
| SerialCommPortal * | instance (utils::SymbolTable *table) | 
| 
 | 
| This will close the UDP socket | 
| 
 | 
| Flush message sends. If we are packaging or buffering message sends, force the real sends. 
 Implements CommPortal. | 
| 
 | ||||||||||||||||
| Initialize the messager. Connect it to a CommManager and select a UDP port. A side effect is the storage of the portal in the manager's symbol table under the name SERIAL_COMM_PORTAL_INSTANCE 
 
 | 
| 
 | 
| Returns the communications protocol instance from manager. It looks up the symbol in the manager's symbol table under SERIAL_COMM_PORTAL_INSTANCE | 
| 
 | 
| Receive a message, blocking until one is available. 
 Implements CommPortal. | 
| 
 | 
| Release a message received by CommPortal::receiveMsg. If you do not do this when you are done with a message, there will be a memory leak. 
 
 Implements CommPortal. |