changed API for DVB (likely not the last time ;)
[senf.git] / Socket / PacketSocketHandle.hh
index aee50f6..a435369 100644 (file)
@@ -1,4 +1,4 @@
-// $Id$
+// $Id:PacketSocketHandle.hh 218 2007-03-20 14:39:32Z tho $
 //
 // Copyright (C) 2006
 // Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS)
@@ -22,6 +22,8 @@
 
 /** \file
     \brief PacketProtocol and PacketSocketHandle public header
+
+    \todo Implement global promisc() helper based on ioctl() interface.
  */
 
 #ifndef HH_PacketSocketHandle_
@@ -61,7 +63,7 @@ namespace senf {
         \par Socket Handle typedefs:
         \ref PacketSocketHandle (ProtocolClientSocketHandle)
 
-        \par Protocol Interface:
+        \par Policy Interface:
         ClientSocketHandle::read(), ClientSocketHandle::readfrom(), ClientSocketHandle::writeto(),
         ClientSocketHandle::bind(), ClientSocketHandle::local(), ClientSocketHandle::rcvbuf(),
         ClientSocketHandle::sndbuf()
@@ -83,8 +85,6 @@ namespace senf {
     public:
         enum SocketType { RawSocket, DatagramSocket };
                                         ///< Socket types
-        enum PromiscMode { Promiscuous, AllMulticast, None };
-                                        ///< Interface modes
 
         ///\name Constructors
         ///@{
@@ -112,23 +112,6 @@ namespace senf {
 
         ///\name Protocol Interface
         ///@{
-        void promisc(std::string interface, PromiscMode mode) const;
-                                        ///< Change interface mode
-                                        /**< This member will change the reception on the given
-                                             interface. The modes available are
-
-                                             <dl>
-                                             <dt>\e None</dt><dd>No special mode set. Only receive
-                                             packets addressed to the interface or of joined
-                                             multicast groups</dd>
-                                             <dt>\e AllMulticast</dt><dd>Additionally receive all
-                                             multicast traffic</dd>
-                                             <dt>\e Promiscuous</dt><dd>Receive all packets on the
-                                             wire</dd>
-                                             </dl>
-
-                                             \param[in] interface interface to modify
-                                             \param[in] mode new interface mode */
 
         // See LLSocketAddress for a discussion/rationale for ForwardRange here
         template <class ForwardRange>
@@ -188,4 +171,6 @@ namespace senf {
 // c-file-style: "senf"
 // indent-tabs-mode: nil
 // ispell-local-dictionary: "american"
+// compile-command: "scons -u test"
+// comment-column: 40
 // End: