DVBFrontendHandle: added some methods to the protocol
[senf.git] / Socket / Protocols / INet / TCPSocketProtocol.hh
index 2fb2b3e..232d38a 100644 (file)
@@ -29,6 +29,7 @@
 
 // Custom includes
 #include "../../../Socket/SocketProtocol.hh"
+#include "INetSocketProtocol.hh"
 
 //#include "TCPSocketProtocol.mpp"
 ///////////////////////////////hh.p////////////////////////////////////////
@@ -44,7 +45,7 @@ namespace senf {
         which are available on any TCP socket.
      */
     class TCPSocketProtocol
-        : public virtual SocketProtocol
+        : public virtual INetSocketProtocol
     {
     public:
         bool nodelay() const;           ///< Check current \c SO_NODELAY status
@@ -59,6 +60,9 @@ namespace senf {
         unsigned siocinq() const;       ///< Return current size of the input queue
         unsigned siocoutq() const;      ///< Return current size of the output queue
 
+        enum ShutType { ShutRD, ShutWR, ShutRDWR };
+        void shutdown(ShutType type) const;
+
         ///\name Abstract Interface Implementation
         ///@{