GNU.WIKI: The GNU/Linux Knowledge Base

  [HOME] [PHP Manual] [HowTo] [ABS] [MAN1] [MAN2] [MAN3] [MAN4] [MAN5] [MAN6] [MAN7] [MAN8] [MAN9]

  [0-9] [Aa] [Bb] [Cc] [Dd] [Ee] [Ff] [Gg] [Hh] [Ii] [Jj] [Kk] [Ll] [Mm] [Nn] [Oo] [Pp] [Qq] [Rr] [Ss] [Tt] [Uu] [Vv] [Ww] [Xx] [Yy] [Zz]


NAME

       ost::UDPDuplex -

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

SYNOPSIS

       #include <socket.h>

       Inherits ost::UDPTransmit, and ost::UDPReceive.

   Public Member Functions
       UDPDuplex (const IPV4Address &bind, tpport_t port)
           Create a UDP duplex as a pair of UDP simplex objects bound to
           alternating and interconnected port addresses.
       UDPDuplex (const IPV6Address &bind, tpport_t port)
       Error connect (const IPV4Host &host, tpport_t port)
           Associate the duplex with a specified peer host.
       Error connect (const IPV6Host &host, tpport_t port)
       Error disconnect (void)
           Disassociate this duplex from any host connection.

   Additional Inherited Members

Detailed Description

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

       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 Unreliable Datagram Peer Associations.

Constructor & Destructor Documentation

   ost::UDPDuplex::UDPDuplex (const IPV4Address &bind, tpport_tport)
       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.

   ost::UDPDuplex::UDPDuplex (const IPV6Address &bind, tpport_tport)

Member Function Documentation

   Error ost::UDPDuplex::connect (const IPV4Host &host, tpport_tport)
       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.

   Error ost::UDPDuplex::connect (const IPV6Host &host, tpport_tport)
   Error 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.

Author

       Generated automatically by Doxygen for GNU CommonC++ from the source
       code.



  All copyrights belong to their respective owners. Other content (c) 2014-2018, GNU.WIKI. Please report site errors to webmaster@gnu.wiki.
Page load time: 0.115 seconds. Last modified: November 04 2018 12:49:43.