UDPBroadcast3cc
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.
Usage
#include <socket.h>
Inherits UDPSocket.
Public Methods
UDPBroadcast (const InetAddress &ia, tpport_t port)
Create and bind a subnet broadcast socket. void setPeer (const BroadcastAddress &subnet, tpport_t port)
Set peer by subnet rather than specific host.
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 <[email protected]>
Constructor & destructor documentation
UDPBroadcast::UDPBroadcast (const InetAddress & 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 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. |