X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FTCPSocketHandle.hh;h=a566d939864f90517bfbabefeebc85bd71f2fa30;hb=5a5c6d7f0fae7ad6c0af49d7742955cb6cf618cf;hp=5d3b2c0e993f366ab6cb457331ab5091a8524294;hpb=c52cd7d87dbb525c1267aad27391b8b7365dbb57;p=senf.git diff --git a/Socket/TCPSocketHandle.hh b/Socket/TCPSocketHandle.hh index 5d3b2c0..a566d93 100644 --- a/Socket/TCPSocketHandle.hh +++ b/Socket/TCPSocketHandle.hh @@ -20,8 +20,11 @@ // Free Software Foundation, Inc., // 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -// TODO: Implement possibly non-blocking connect and SO_ERROR in the -// protocol interface +/** \file + + \todo Implement possibly non-blocking connect and SO_ERROR in the + protocol interface + */ #ifndef HH_TCPSocketHandle_ #define HH_TCPSocketHandle_ 1 @@ -40,8 +43,10 @@ //#include "TCPSocketHandle.mpp" ///////////////////////////////hh.p//////////////////////////////////////// -namespace satcom { -namespace lib { +namespace senf { + + /// \addtogroup concrete_protocol_group + /// @{ typedef MakeSocketPolicy< INet4AddressingPolicy, @@ -50,8 +55,10 @@ namespace lib { ReadablePolicy, WriteablePolicy, SocketBufferingPolicy - >::policy TCPv4Socket_Policy; + >::policy TCPv4Socket_Policy; ///< Socket Policy of the TCPv4 Protocol + /** \brief + */ class TCPv4SocketProtocol : public ConcreteSocketProtocol, public IPv4Protocol, @@ -63,12 +70,20 @@ namespace lib { /////////////////////////////////////////////////////////////////////////// // internal interface + ///\name Constructors + ///@{ + void init_client() const; void init_client(INet4Address const & address) const; void init_server() const; void init_server(INet4Address const & address, unsigned backlog=1) const; + ///@} + ///\name Abstract Interface Implementation + std::auto_ptr clone() const; + + ///@} }; typedef ProtocolClientSocketHandle TCPv4ClientSocketHandle; @@ -86,13 +101,15 @@ namespace lib { public BSDSocketProtocol, public AddressableBSDSocketProtocol { - // TODO: Implement + /** \todo Implement */ }; typedef ProtocolClientSocketHandle TCPv6ClientSocketHandle; typedef ProtocolServerSocketHandle TCPv6ServerSocketHandle; -}} + /// @} + +} ///////////////////////////////hh.e//////////////////////////////////////// //#include "TCPSocketHandle.cci" @@ -103,5 +120,5 @@ namespace lib { // Local Variables: // mode: c++ -// c-file-style: "satcom" +// c-file-style: "senf" // End: