Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

ost::UDPDuplex Class Reference

UDP duplex connections impliment a bi-directional point-to-point UDP session between two peer hosts. Unreliable Datagram Peer Associations. More...

#include <socket.h>

Inheritance diagram for ost::UDPDuplex::

ost::UDPTransmit ost::UDPReceive ost::UDPSocket ost::UDPSocket List of all members.

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...


Detailed Description

UDP duplex connections impliment a bi-directional point-to-point UDP session between two peer hosts. Unreliable Datagram Peer Associations.

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.

Author:
David Sugar <dyfet@ostel.com>


Constructor & Destructor Documentation

ost::UDPDuplex::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.

Parameters:
bind   address to bind this socket to.
port   number to bind sender.
port   number to bind reciever.


Member Function Documentation

sockerror_t ost::UDPDuplex::Connect const InetHostAddress &   host,
tpport_t   port
 

Associate the duplex with a specified peer host.

Both the sender and receiver will be interconnected with the remote host.

Returns:
0 on success, error code on error.
Parameters:
host   address to connect socket to.
port   number to connect socket to.

Reimplemented from ost::UDPTransmit.

sockerror_t ost::UDPDuplex::Disconnect void  
 

Disassociate this duplex from any host connection.

No data should be read or written until a connection is established.

Returns:
0 on success, error code on error.

Reimplemented from ost::UDPTransmit.


The documentation for this class was generated from the following file:
Generated at Wed Dec 5 07:05:31 2001 for CommonC++ by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001