ucommon
Public Member Functions
ost::UDPBroadcast Class Reference

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

#include <udp.h>

Inheritance diagram for ost::UDPBroadcast:
Inheritance graph
[legend]
Collaboration diagram for ost::UDPBroadcast:
Collaboration graph
[legend]

Public Member Functions

void setPeer (const IPV4Broadcast &subnet, tpport_t port)
 Set peer by subnet rather than specific host.
 UDPBroadcast (const IPV4Address &ia, tpport_t port)
 Create and bind a subnet broadcast socket.

Detailed Description

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

Author:
David Sugar <dyfet@ostel.com> Unreliable Datagram for subnet broadcasts.

Definition at line 263 of file udp.h.


Constructor & Destructor Documentation

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

Create and bind a subnet broadcast socket.

Parameters:
iaaddress to bind socket under locally.
portto 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:
subnetof peer hosts to send to.
portnumber to use.

The documentation for this class was generated from the following file: