class UDPBroadcast

Unreliable Datagram for subnet broadcasts. More...

Full nameost::UDPBroadcast
Definition#include <socket.h>
Inheritsost::UDPSocket [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods


Detailed Description

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

 UDPBroadcast (const InetAddress &ia, tpport_t port)

UDPBroadcast

Create and bind a subnet broadcast socket.

Parameters:
addressto bind socket under locally.
portto bind socket under locally.

void  setPeer (const BroadcastAddress &subnet, tpport_t port)

setPeer

Set peer by subnet rather than specific host.

Parameters:
subnetof peer hosts to send to.
portnumber to use.

Reimplemented from UDPSocket.