• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

KDECore

KNetwork::KMulticastSocket

KNetwork::KMulticastSocket Class Reference

A multicast-capable datagram socket class. More...

#include <kmulticastsocket.h>

Inheritance diagram for KNetwork::KMulticastSocket:

Inheritance graph
[legend]

List of all members.


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.

Author:
Thiago Macieira <thiago.macieira@kdemail.net>

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:
  • kmulticastsocket.h

KDECore

Skip menu "KDECore"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal