Main Page | Modules | Class Hierarchy | Compound List | File List | Compound Members | File Members | Related Pages

SerialRemoteManager Class Reference
[Communications Facilities]

#include <SerialRemoteManager.hh>

Inherits RemoteManager.

List of all members.


Detailed Description

Class for a remote manager connected via a serial line.

This class contains all the information a communication manager has about a remote communications manager and provides an abstracted method for sending messages.


Public Member Functions

 SerialRemoteManager (SerialCommPortal *portal)
virtual bool sendMsg (Message *msg, unsigned char *preamble=NULL, int preamble_size=0)


Constructor & Destructor Documentation

SerialRemoteManager::SerialRemoteManager SerialCommPortal portal  ) 
 

Constructor

Parameters:
[in] portal The network communications portal used for output


Member Function Documentation

virtual bool SerialRemoteManager::sendMsg Message msg,
unsigned char *  preamble = NULL,
int  preamble_size = 0
[virtual]
 

Sends a message to the remote manager

Parameters:
[in] msg The message to send. If no message, just send the preamble
[in] preamble If there, precede the message data with the preamble data
[in] preamble_size If there, the size of the preamble data
Returns:
Return true if successful, false if not

Implements RemoteManager.


RHexLib Reference Documentation