XrlSocket6UserV0p1Client (XrlSender* s)
| XrlSocket6UserV0p1Client |
~XrlSocket6UserV0p1Client ()
| ~XrlSocket6UserV0p1Client |
[virtual]
typedef XorpCallback1<void, const XrlError&>::RefPtr RecvEventCB | RecvEventCB |
bool send_recv_event (
const char* dst_xrl_target_name,
const string& sockid,
const string& if_name,
const string& vif_name,
const IPv6& 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 socket6/0.1 when a packet arrives from an IPv6 source.
Parameters:
dst_xrl_target_name | the Xrl target name of the destination. |
sockid | the identifier associated with socket where the event occurred. |
if_name | the interface name the packet arrived on, if known. If unknown, then it is an empty string. |
vif_name | the vif name the packet arrived on, if known. If unknown, then it is an empty string. |
src_host | the originating host. |
src_port | the originating IP port. |
data | the data received. |
typedef XorpCallback2<void, const XrlError&, const bool*>::RefPtr InboundConnectEventCB | InboundConnectEventCB |
bool send_inbound_connect_event (
const char* dst_xrl_target_name,
const string& sockid,
const IPv6& src_host,
const uint32_t& src_port,
const string& new_sockid,
const InboundConnectEventCB& cb
)
| send_inbound_connect_event |
Send Xrl intended to:
Method invoked by target implementing socket6/0.1 when a connection request is received from an IPv6 source. It applies only to TCP sockets.
Parameters:
dst_xrl_target_name | the Xrl target name of the destination. |
sockid | the identifier associated with socket where the event occurred. |
src_host | the connecting host. |
src_port | the connecting IP port. |
new_sockid | the identifier associated with the new socket that has been created to handle the new connection. |
typedef XorpCallback1<void, const XrlError&>::RefPtr OutgoingConnectEventCB | OutgoingConnectEventCB |
bool send_outgoing_connect_event (
const char* dst_xrl_target_name,
const string& sockid,
const OutgoingConnectEventCB& cb
)
| send_outgoing_connect_event |
Send Xrl intended to:
Method invoked by target implementing socket6/0.1 when an outgoing connection request originated by the local host is completed. It applies only to TCP sockets. Note that if the connection failed, the error_event will be dispatched instead.
Parameters:
dst_xrl_target_name | the Xrl target name of the destination. |
sockid | the identifier associated with socket where the event occurred. |
typedef XorpCallback1<void, const XrlError&>::RefPtr ErrorEventCB | ErrorEventCB |
bool send_error_event (
const char* dst_xrl_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 socket6/0.1 when an error occurs.
Parameters:
dst_xrl_target_name | the Xrl target name of the destination. |
sockid | the identifier associated with socket where the event occurred. |
error | a textual description of the error. |
fatal | indication of whether socket is shutdown because of error. |
typedef XorpCallback1<void, const XrlError&>::RefPtr DisconnectEventCB | DisconnectEventCB |
bool send_disconnect_event (
const char* dst_xrl_target_name,
const string& sockid,
const DisconnectEventCB& cb
)
| send_disconnect_event |
Send Xrl intended to:
Method invoked by target implementing socket6/0.1 when the peer has closed the connection. It applies only to TCP sockets. Note that the socket itself is left open and must be explicitly closed.
Parameters:
dst_xrl_target_name | the Xrl target name of the destination. |
sockid | the identifier associated with socket where the event occurred. |
XrlSender* _sender | _sender |
[protected]