class UDPBroadcast

Unreliable Datagram for subnet broadcasts. More...

Definition#include <socket.h>
InheritsUDPSocket
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Members


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)

Create and bind a subnet broadcast socket.

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

void setPeer (const BroadcastAddress &ia, tpport_t port)

Set peer by subnet rather than specific host.

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

Reimplemented from UDPSocket