IBR-DTNSuite  0.8
ibrcommon::MulticastSocket Class Reference

#include <MulticastSocket.h>

List of all members.

Public Member Functions

 MulticastSocket (const int fd)
virtual ~MulticastSocket ()
void setInterface (const vinterface &iface)
void joinGroup (const vaddress &group)
void joinGroup (const vaddress &group, const vinterface &iface)
void leaveGroup (const vaddress &group)
void leaveGroup (const vaddress &group, const vinterface &iface)

Detailed Description

A MulticastSocket is derived from udpsocket and provides operations for sending and receiving multicast messages over UDP.

Definition at line 21 of file MulticastSocket.h.


Constructor & Destructor Documentation

Definition at line 21 of file MulticastSocket.cpp.

Definition at line 26 of file MulticastSocket.cpp.


Member Function Documentation

Join a multicast group.

Parameters:
groupThe multicast group to join.

Definition at line 60 of file MulticastSocket.cpp.

References ibrcommon::vaddress::get(), ibrcommon::vaddress::getFamily(), IBRCOMMON_LOGGER_DEBUG, IBRCOMMON_LOGGER_ENDL, and ibrcommon::vaddress::toString().

Referenced by dtn::net::IPNDAgent::componentUp(), and dtn::net::IPNDAgent::eventNotify().

Here is the call graph for this function:

void ibrcommon::MulticastSocket::joinGroup ( const vaddress group,
const vinterface iface 
)

Join a multicast group.

Parameters:
groupThe multicast group to join.
ifaceThe interface to use for this multicast group.

Definition at line 79 of file MulticastSocket.cpp.

References ibrcommon::vaddress::get(), ibrcommon::vinterface::getAddresses(), ibrcommon::vaddress::getFamily(), IBRCOMMON_LOGGER_DEBUG, IBRCOMMON_LOGGER_ENDL, ibrcommon::vaddress::toString(), and ibrcommon::vaddress::VADDRESS_INET.

Here is the call graph for this function:

Leave a multicast group.

Parameters:
group

Definition at line 129 of file MulticastSocket.cpp.

References ibrcommon::vaddress::get(), and ibrcommon::vaddress::getFamily().

Here is the call graph for this function:

void ibrcommon::MulticastSocket::leaveGroup ( const vaddress group,
const vinterface iface 
)

Leave a multicast group.

Parameters:
groupThe multicast group to leave.
ifaceThe interface used for this multicast group.

Definition at line 145 of file MulticastSocket.cpp.

References ibrcommon::vaddress::get(), and ibrcommon::vaddress::getFamily().

Here is the call graph for this function:

Set the default interface for outgoing datagrams

Parameters:
iface

Definition at line 30 of file MulticastSocket.cpp.

References ibrcommon::vaddress::get(), ibrcommon::vinterface::getAddresses(), ibrcommon::vaddress::getFamily(), and ibrcommon::vaddress::VADDRESS_INET.

Here is the call graph for this function:


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