kmulticastsocketdevice.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef KMULTICASTSOCKETDEVICE_H
00026 #define KMULTICASTSOCKETDEVICE_H
00027
00028 #include "ksocketdevice.h"
00029 #include "knetworkinterface.h"
00030 #include "ksocketaddress.h"
00031
00032 namespace KNetwork {
00033
00034 class KMulticastSocketImplPrivate;
00035
00045 class KMulticastSocketImpl: public KSocketDevice
00046 {
00047 public:
00051 KMulticastSocketImpl(const KSocketBase* = 0L);
00052
00056 virtual ~KMulticastSocketImpl();
00057
00061 virtual int capabilities() const;
00062
00066 virtual bool create(int family, int type, int protocol);
00067
00071 virtual bool connect(const KResolverEntry& address);
00072
00076 virtual int timeToLive() const;
00077
00084 virtual bool setTimeToLive(int ttl);
00085
00090 virtual bool multicastLoop() const;
00091
00098 virtual bool setMulticastLoop(bool enable);
00099
00103 virtual KNetworkInterface networkInterface();
00104
00111 virtual bool setNetworkInterface(const KNetworkInterface& iface);
00112
00120 virtual bool joinGroup(const KSocketAddress& group);
00121
00127 virtual bool joinGroup(const KSocketAddress& group,
00128 const KNetworkInterface& iface);
00129
00137 virtual bool leaveGroup(const KSocketAddress& group);
00138
00143 virtual bool leaveGroup(const KSocketAddress& group,
00144 const KNetworkInterface& iface);
00145 private:
00146 KMulticastSocketImplPrivate *d;
00147 };
00148
00149 }
00150
00151 #endif
This file is part of the documentation for kdecore Library Version 3.4.1.