|
|
~IoTcpUdpManagerReceiver ()
| ~IoTcpUdpManagerReceiver |
[virtual]
void recv_event (const string& receiver_name,
const string& sockid,
const string& if_name,
const string& vif_name,
const IPvX& src_host,
uint16_t src_port,
const vector<uint8_t>& data)
| recv_event |
[pure virtual]
Data received event.
Parameters:
receiver_name | the name of the receiver to send the data to. |
sockid | unique socket ID. |
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 IP address. |
src_port | the originating host port number. |
data | the data received. |
void inbound_connect_event (const string& receiver_name,
const string& sockid,
const IPvX& src_host,
uint16_t src_port,
const string& new_sockid)
| inbound_connect_event |
[pure virtual]
Inbound connection request received event.
It applies only to TCP sockets.
Parameters:
receiver_name | the name of the receiver to send the event to. |
sockid | unique socket ID. |
src_host | the originating host IP address. |
src_port | the originating host port number. |
new_sockid | the new socket ID. |
void outgoing_connect_event (int family,
const string& receiver_name,
const string& sockid)
| outgoing_connect_event |
[pure virtual]
Outgoing connection request completed event.
It applies only to TCP sockets.
Parameters:
family | the address family (AF_INET or AF_INET6 for IPv4 and IPv6 respectively). |
receiver_name | the name of the receiver to send the event to. |
sockid | unique socket ID. |
void error_event (int family,
const string& receiver_name,
const string& sockid,
const string& error,
bool fatal)
| error_event |
[pure virtual]
Error occured event.
Parameters:
family | the address family (AF_INET or AF_INET6 for IPv4 and IPv6 respectively). |
receiver_name | the name of the receiver to send the event to. |
sockid | unique socket ID. |
error | a textual description of the error. |
fatal | indication of whether socket is shutdown because of error. |
void disconnect_event (int family,
const string& receiver_name,
const string& sockid)
| disconnect_event |
[pure virtual]
Connection closed by peer event.
It applies only to TCP sockets. This method is not called if the socket is gracefully closed through close().
Parameters:
family | the address family (AF_INET or AF_INET6 for IPv4 and IPv6 respectively). |
receiver_name | the name of the receiver to send the event to. |
sockid | unique socket ID. |