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

tdecore

KNetwork::KMulticastSocketImpl

KNetwork::KMulticastSocketImpl Class Reference

The low-level backend for multicasting sockets. More...

#include <tdemulticastsocketdevice.h>

Inheritance diagram for KNetwork::KMulticastSocketImpl:
KNetwork::TDESocketDevice KNetwork::KActiveSocketBase KNetwork::KPassiveSocketBase TQIODevice KNetwork::TDESocketBase KNetwork::TDESocketBase

List of all members.

Public Member Functions

 KMulticastSocketImpl (const TDESocketBase *=0L)
virtual ~KMulticastSocketImpl ()
virtual int capabilities () const
virtual bool create (int family, int type, int protocol)
virtual bool connect (const KResolverEntry &address)
virtual int timeToLive () const
virtual bool setTimeToLive (int ttl)
virtual bool multicastLoop () const
virtual bool setMulticastLoop (bool enable)
virtual KNetworkInterface networkInterface ()
virtual bool setNetworkInterface (const KNetworkInterface &iface)
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

The low-level backend for multicasting sockets.

This class is an interface providing methods for handling multicast operations.

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

Definition at line 45 of file tdemulticastsocketdevice.h.


Constructor & Destructor Documentation

KNetwork::KMulticastSocketImpl::KMulticastSocketImpl ( const TDESocketBase *  = 0L  ) 

Constructor.

virtual KNetwork::KMulticastSocketImpl::~KMulticastSocketImpl (  )  [virtual]

Destructor.


Member Function Documentation

virtual int KNetwork::KMulticastSocketImpl::capabilities (  )  const [virtual]

Sets our capabilities.

Reimplemented from KNetwork::TDESocketDevice.

virtual bool KNetwork::KMulticastSocketImpl::connect ( const KResolverEntry &  address  )  [virtual]

Overrides connection.

Multicast sockets may not connect.

Reimplemented from KNetwork::TDESocketDevice.

virtual bool KNetwork::KMulticastSocketImpl::create ( int  family,
int  type,
int  protocol 
) [virtual]

Overrides the socket creation.

Reimplemented from KNetwork::TDESocketDevice.

virtual bool KNetwork::KMulticastSocketImpl::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::KMulticastSocketImpl::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::KMulticastSocketImpl::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.

virtual bool KNetwork::KMulticastSocketImpl::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::KMulticastSocketImpl::multicastLoop (  )  const [virtual]

Retrieves the flag indicating if sent packets will be echoed back to sender.

virtual KNetworkInterface KNetwork::KMulticastSocketImpl::networkInterface (  )  [virtual]

Retrieves the network interface this socket is associated to.

virtual bool KNetwork::KMulticastSocketImpl::setMulticastLoop ( bool  enable  )  [virtual]

Sets the flag indicating the loopback of packets to the sender.

Parameters:
enable if true, will echo back
Returns:
true if setting the value was successful.
virtual bool KNetwork::KMulticastSocketImpl::setNetworkInterface ( const KNetworkInterface &  iface  )  [virtual]

Sets the network interface on which this socket should work.

Parameters:
iface the interface to associate with
Returns:
true if setting the value was successful.
virtual bool KNetwork::KMulticastSocketImpl::setTimeToLive ( int  ttl  )  [virtual]

Sets the time-to-live/hop count for outgoing multicast packets.

Parameters:
ttl the hop count, from 0 to 255
Returns:
true if setting the value was successful.
virtual int KNetwork::KMulticastSocketImpl::timeToLive (  )  const [virtual]

Retrieves the time-to-live/hop count value on multicast packets being sent.


The documentation for this class was generated from the following file:
  • tdemulticastsocketdevice.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.6.3
This website is maintained by Timothy Pearson.