| 
 | 
 | ||||||||||||||||
The real receiver must inherit from this class and register with the corresponding IoTcpUdp entity to receive the TCP/UDP data and data-related events.
See also: IoTcpUdp.
| IoTcpUdpReceiver () | IoTcpUdpReceiver | 
| ~IoTcpUdpReceiver () | ~IoTcpUdpReceiver | 
[virtual]
| void  recv_event (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:
| 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 IPvX&	src_host,
				       uint16_t		src_port,
				       IoTcpUdp*	Xnew_io_tcpudp) | inbound_connect_event | 
[pure virtual]
Inbound connection request received event.
It applies only to TCP sockets.
Parameters:
| src_host | the originating host IP address. | 
| src_port | the originating host port number. | 
| new_io_tcpudp | the handler for the new connection. | 
| void  outgoing_connect_event () | outgoing_connect_event | 
[pure virtual]
Outgoing connection request completed event.
It applies only to TCP sockets.
| void  error_event (const string&		error,
			     bool			fatal) | error_event | 
[pure virtual]
Error occured event.
Parameters:
| error | a textual description of the error. | 
| fatal | indication of whether socket is shutdown because of error. | 
| void  disconnect_event () | 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().