#include <MulticastSocket.h>

Public Member Functions | |
| MulticastSocket () | |
| virtual | ~MulticastSocket () |
| void | bind (int port) |
| void | setInterface (const NetInterface &iface) |
| void | joinGroup (std::string group) |
| void | joinGroup (std::string group, const NetInterface &iface) |
| void | leaveGroup (std::string group) |
| void | leaveGroup (std::string group, const NetInterface &iface) |
Static Public Member Functions | |
| static bool | isMulticast (std::string address) |
Definition at line 16 of file MulticastSocket.h.
| ibrcommon::MulticastSocket::MulticastSocket | ( | ) |
| ibrcommon::MulticastSocket::~MulticastSocket | ( | ) | [virtual] |
Definition at line 34 of file MulticastSocket.cpp.
| void ibrcommon::MulticastSocket::bind | ( | int | port | ) |
Definition at line 69 of file MulticastSocket.cpp.
References ibrcommon::udpsocket::_sockaddr, and ibrcommon::udpsocket::_socket.
Referenced by dtn::net::IPNDAgent::componentUp().
| void ibrcommon::MulticastSocket::setInterface | ( | const NetInterface & | iface | ) |
Set the default interface for outgoing datagrams
| iface |
Definition at line 55 of file MulticastSocket.cpp.
References ibrcommon::udpsocket::_socket, and ibrcommon::NetInterface::getAddress().
Referenced by dtn::net::IPNDAgent::componentUp().
| void ibrcommon::MulticastSocket::joinGroup | ( | std::string | group | ) |
Definition at line 81 of file MulticastSocket.cpp.
References ibrcommon::udpsocket::_socket.
Referenced by dtn::net::IPNDAgent::componentUp().
| void ibrcommon::MulticastSocket::joinGroup | ( | std::string | group, | |
| const NetInterface & | iface | |||
| ) |
Definition at line 97 of file MulticastSocket.cpp.
References ibrcommon::udpsocket::_socket, and ibrcommon::NetInterface::getAddress().
| void ibrcommon::MulticastSocket::leaveGroup | ( | std::string | group | ) |
| void ibrcommon::MulticastSocket::leaveGroup | ( | std::string | group, | |
| const NetInterface & | iface | |||
| ) |
Definition at line 132 of file MulticastSocket.cpp.
References ibrcommon::udpsocket::_socket, and ibrcommon::NetInterface::getAddress().
| bool ibrcommon::MulticastSocket::isMulticast | ( | std::string | address | ) | [static] |
1.5.6