KDECore
KNetwork::KMulticastSocket Class Reference
A multicast-capable datagram socket class. More...
#include <kmulticastsocket.h>
Public Member Functions | |
virtual bool | joinGroup (const KSocketAddress &group, const KNetworkInterface &iface) |
virtual bool | joinGroup (const KSocketAddress &group) |
KMulticastSocket (QObject *parent=0L, const char *name=0L) | |
virtual bool | leaveGroup (const KSocketAddress &group, const KNetworkInterface &iface) |
virtual bool | leaveGroup (const KSocketAddress &group) |
const KMulticastSocketImpl * | multicastSocketDevice () const |
KMulticastSocketImpl * | multicastSocketDevice () |
~KMulticastSocket () |
Detailed Description
A multicast-capable datagram socket class.This class derives from KDatagramSocket adding methods to it to allow better control over the multicast functionality. In special, the join and leave group functions are added.
Other more low-level options on multicast sockets can be accessed directly with the KMulticastSocketImpl class returned by multicastSocketDevice.
Definition at line 48 of file kmulticastsocket.h.
Constructor & Destructor Documentation
KNetwork::KMulticastSocket::KMulticastSocket | ( | QObject * | parent = 0L , |
|
const char * | name = 0L | |||
) |
Constructor.
KNetwork::KMulticastSocket::~KMulticastSocket | ( | ) |
Destructor.
Member Function Documentation
virtual bool KNetwork::KMulticastSocket::joinGroup | ( | const KSocketAddress & | group, | |
const KNetworkInterface & | iface | |||
) | [virtual] |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Joins a multicast group.
This function also specifies the network interface to be used.
virtual bool KNetwork::KMulticastSocket::joinGroup | ( | const KSocketAddress & | group | ) | [virtual] |
Joins a multicast group.
The group to be joined is identified by the group
parameter.
- Parameters:
-
group the multicast group to join
- Returns:
- true on success
virtual bool KNetwork::KMulticastSocket::leaveGroup | ( | const KSocketAddress & | group, | |
const KNetworkInterface & | iface | |||
) | [virtual] |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Leaves a multicast group.
virtual bool KNetwork::KMulticastSocket::leaveGroup | ( | const KSocketAddress & | group | ) | [virtual] |
Leaves a multicast group.
The group being left is given by its address in the group
parameter.
- Parameters:
-
group the group to leave
- Returns:
- true on successful leaving the group
const KMulticastSocketImpl* KNetwork::KMulticastSocket::multicastSocketDevice | ( | ) | const |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
KMulticastSocketImpl* KNetwork::KMulticastSocket::multicastSocketDevice | ( | ) |
Returns the multicast socket device in use by this object.
- Note:
- The returned object can be null.
The documentation for this class was generated from the following file: