Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Examples  

ost::UDPBroadcast Class Reference

Representing a UDP socket used for subnet broadcasts, this class provides an alternate binding and setPeer() capability for UDP sockets. Unreliable Datagram for subnet broadcasts. More...

#include <socket.h>

Inheritance diagram for ost::UDPBroadcast::

ost::UDPSocket ost::Socket List of all members.

Public Methods

 UDPBroadcast (const IPV4Address &ia, tpport_t port)
 Create and bind a subnet broadcast socket. More...

void setPeer (const IPV4Broadcast &subnet, tpport_t port)
 Set peer by subnet rather than specific host. More...


Detailed Description

Representing a UDP socket used for subnet broadcasts, this class provides an alternate binding and setPeer() capability for UDP sockets. Unreliable Datagram for subnet broadcasts.

Author:
David Sugar <dyfet@ostel.com>


Constructor & Destructor Documentation

ost::UDPBroadcast::UDPBroadcast ( const IPV4Address & ia,
tpport_t port )
 

Create and bind a subnet broadcast socket.

Parameters:
ia   address to bind socket under locally.
port   to bind socket under locally.


Member Function Documentation

void ost::UDPBroadcast::setPeer ( const IPV4Broadcast & subnet,
tpport_t port )
 

Set peer by subnet rather than specific host.

Parameters:
subnet   of peer hosts to send to.
port   number to use.


The documentation for this class was generated from the following file:
Generated at Fri May 30 14:51:05 2008 for GNU CommonC++ by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001