#include <socket.h>
Inheritance diagram for UDPDuplex::
Public Methods | |
UDPDuplex (const InetAddress &bind, tpport_t port) | |
Create a UDP duplex as a pair of UDP simplex objects bound to alternating and interconnected port addresses. More... | |
sockerror_t | Connect (const InetHostAddress &host, tpport_t port) |
Associate the duplex with a specified peer host. More... | |
sockerror_t | Disconnect (void) |
Disassociate this duplex from any host connection. More... |
Two UDP sockets are typically used on alternating port addresses to assure that sender and receiver data does not collide or echo back. A UDP Duplex is commonly used for full duplex real-time streaming of UDP data between hosts.
|
Create a UDP duplex as a pair of UDP simplex objects bound to alternating and interconnected port addresses.
|
|
Associate the duplex with a specified peer host. Both the sender and receiver will be interconnected with the remote host.
Reimplemented from UDPTransmit. |
|
Disassociate this duplex from any host connection. No data should be read or written until a connection is established.
Reimplemented from UDPTransmit. |