|
xorp
|
Public Types | |
|
typedef XorpCallback2< void, const XrlError &, XrlArgs * > ::RefPtr | SendCallback |
Public Member Functions | |
| XrlPFSender (const string &name, EventLoop &e, const char *address) | |
| virtual bool | send (const Xrl &xrl, bool direct_call, const SendCallback &cb)=0 |
| Send an Xrl. | |
| virtual bool | sends_pending () const =0 |
| virtual const char * | protocol () const =0 |
| virtual bool | alive () const =0 |
| Determine if the underlying transport is still open. | |
| virtual void | batch_start () |
| virtual void | batch_stop () |
| const string & | address () const |
| EventLoop & | eventloop () const |
| virtual void | set_address (const char *a) |
| virtual string | toString () const |
Protected Attributes | |
| EventLoop & | _eventloop |
| string | _address |
| string | _name |
| virtual bool XrlPFSender::alive | ( | ) | const [pure virtual] |
Determine if the underlying transport is still open.
Implemented in XrlPFSTCPSender.
| virtual bool XrlPFSender::send | ( | const Xrl & | xrl, |
| bool | direct_call, | ||
| const SendCallback & | cb | ||
| ) | [pure virtual] |
This method attempts to perform the sender side processing of an XRL.
If a direct_call the method will return true or false to indicate success to the caller. If not a direct call, a failure will be communicated via a callback since there's no way to get the information directly back to the caller.
| xrl | XRL to be sent. |
| direct_call | indication of whether the caller is on the stack. |
| cb | Callback to be invoked with result. |
Implemented in XrlPFSTCPSender.