XrlSocket4UserV0p1Client (XrlSender* s)
| XrlSocket4UserV0p1Client |
~XrlSocket4UserV0p1Client ()
| ~XrlSocket4UserV0p1Client |
[virtual]
typedef XorpCallback1<void, const XrlError&>::RefPtr RecvEventCB | RecvEventCB |
bool send_recv_event (
const char* target_name,
const string& sockid,
const IPv4& src_host,
const uint32_t& src_port,
const vector<uint8_t>& data,
const RecvEventCB& cb
)
| send_recv_event |
Send Xrl intended to:
Method invoked by target implementing socket4/0.1 when a packet arrives from an IPv4 source.
Parameters:
tgt_name | Xrl Target name |
sockid | the identifier associated with socket where error occurred. |
src_host | the originating host. |
src_port | the originating IP port. |
data | the data received. |
typedef XorpCallback2<void, const XrlError&, const bool*>::RefPtr ConnectEventCB | ConnectEventCB |
bool send_connect_event (
const char* target_name,
const string& sockid,
const IPv4& src_host,
const uint32_t& src_port,
const string& new_sockid,
const ConnectEventCB& cb
)
| send_connect_event |
Send Xrl intended to:
Method invoked by target implementing socket4/0.1 when a connection request is received from an IPv4 source.
Parameters:
tgt_name | Xrl Target name |
typedef XorpCallback1<void, const XrlError&>::RefPtr ErrorEventCB | ErrorEventCB |
bool send_error_event (
const char* target_name,
const string& sockid,
const string& error,
const bool& fatal,
const ErrorEventCB& cb
)
| send_error_event |
Send Xrl intended to:
Method invoked by target implementing socket4/0.1 when an error occurs.
Parameters:
tgt_name | Xrl Target name |
sockid | the identifier associated with socket where error occurred. |
error | a textual description of the error. |
fatal | indication of whether socket is shutdown because of error. |
typedef XorpCallback1<void, const XrlError&>::RefPtr CloseEventCB | CloseEventCB |
bool send_close_event (
const char* target_name,
const string& sockid,
const string& reason,
const CloseEventCB& cb
)
| send_close_event |
Send Xrl intended to:
Method invoked by target implementing socket4/0.1 when a socket is forcibly closed. This would typically happen when the address the socket is bound to is removed from an interface. This method is not called if the socket is closed through socket/0.1/close.
Parameters:
tgt_name | Xrl Target name |
XrlSender* _sender | _sender |
[protected]