#include <BroadcastSocket.h>
Public Member Functions | |
| BroadcastSocket () | |
| virtual | ~BroadcastSocket () |
| void | bind (int port, std::string address="") |
| void | bind (int port, const NetInterface &iface) |
A BroadcastSocket is derived from udpsocket and provides operations for sending and receiving broadcast messages over UDP.
Definition at line 20 of file BroadcastSocket.h.
| ibrcommon::BroadcastSocket::BroadcastSocket | ( | ) |
Definition at line 12 of file BroadcastSocket.cpp.
References ibrcommon::udpsocket::_socket.
| ibrcommon::BroadcastSocket::~BroadcastSocket | ( | ) | [virtual] |
Definition at line 25 of file BroadcastSocket.cpp.
| void ibrcommon::BroadcastSocket::bind | ( | int | port, | |
| const NetInterface & | iface | |||
| ) |
Bind to a given port and network interface.
| port | UDP port | |
| iface | Network interface to bind to. |
Definition at line 29 of file BroadcastSocket.cpp.
References ibrcommon::udpsocket::_sockaddr, ibrcommon::udpsocket::_socket, bind(), and ibrcommon::NetInterface::getBroadcast().
| void ibrcommon::BroadcastSocket::bind | ( | int | port, | |
| std::string | address = "" | |||
| ) |
Bind to a given port and address.
| port | UDP port | |
| address | IP address |
Definition at line 43 of file BroadcastSocket.cpp.
References ibrcommon::udpsocket::_sockaddr, and ibrcommon::udpsocket::_socket.
Referenced by bind(), dtn::net::UDPConvergenceLayer::componentUp(), and dtn::net::IPNDAgent::componentUp().
1.6.3