Google

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

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 UDPBroadcast:

UDPSocket Socket List of all members.

Public Methods

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

void setPeer (const BroadcastAddress &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(s):
David Sugar <dyfet@ostel.com>


Constructor & Destructor Documentation

UDPBroadcast::UDPBroadcast ( const InetAddress & ia,
tpport_t port )
 

Create and bind a subnet broadcast socket.

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


Member Function Documentation

void UDPBroadcast::setPeer ( const BroadcastAddress & 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 Mar 23 10:47:57 2001 for CommonC++ by doxygen1.2.1 written by Dimitri van Heesch, © 1997-2000