• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdecore
 

tdecore

  • KNetwork
  • KNetwork::KMulticastSocket
Public Member Functions

KNetwork::KMulticastSocket Class Reference

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

#include <tdemulticastsocket.h>

Inheritance diagram for KNetwork::KMulticastSocket:
KNetwork::KDatagramSocket KNetwork::KClientSocketBase TQObject KNetwork::KActiveSocketBase TQIODevice KNetwork::TDESocketBase

List of all members.

Public Member Functions

 KMulticastSocket (TQObject *parent=0L, const char *name=0L)
 ~KMulticastSocket ()
KMulticastSocketImpl * multicastSocketDevice ()
const KMulticastSocketImpl * multicastSocketDevice () const
virtual bool joinGroup (const TDESocketAddress &group)
virtual bool joinGroup (const TDESocketAddress &group, const KNetworkInterface &iface)
virtual bool leaveGroup (const TDESocketAddress &group)
virtual bool leaveGroup (const TDESocketAddress &group, const KNetworkInterface &iface)

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 47 of file tdemulticastsocket.h.


Constructor & Destructor Documentation

KNetwork::KMulticastSocket::KMulticastSocket ( TQObject *  parent = 0L,
const char *  name = 0L 
)

Constructor.

KNetwork::KMulticastSocket::~KMulticastSocket (  ) 

Destructor.


Member Function Documentation

virtual bool KNetwork::KMulticastSocket::joinGroup ( const TDESocketAddress &  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::joinGroup ( const TDESocketAddress &  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::leaveGroup ( const TDESocketAddress &  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
virtual bool KNetwork::KMulticastSocket::leaveGroup ( const TDESocketAddress &  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.

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

tdecore

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

tdecore

Skip menu "tdecore"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdecore by doxygen 1.7.1
This website is maintained by Timothy Pearson.