X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FClientSocketHandle.hh;h=2d15dc97f5a65c58f73e947de89f13dbf165a37c;hb=63f4ccfd1186c135b54d3f8d8679c18118dda946;hp=1eff5ce5d0311d88350fe44ae870672e4728ef61;hpb=afa15c46e79de0f407d41fda78b6e8d08700caa8;p=senf.git diff --git a/Socket/ClientSocketHandle.hh b/Socket/ClientSocketHandle.hh index 1eff5ce..2d15dc9 100644 --- a/Socket/ClientSocketHandle.hh +++ b/Socket/ClientSocketHandle.hh @@ -1,9 +1,9 @@ // $Id$ // // Copyright (C) 2006 -// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS) -// Kompetenzzentrum fuer Satelitenkommunikation (SatCom) -// Stefan Bund +// Fraunhofer Institute for Open Communication Systems (FOKUS) +// Competence Center NETwork research (NET), St. Augustin, GERMANY +// Stefan Bund // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by @@ -42,7 +42,7 @@ namespace senf { /// \addtogroup handle_group /// @{ - template class ServerSocketHandle; + template class ServerSocketHandle; /** \brief Generic SocketHandle with client interface @@ -63,8 +63,6 @@ namespace senf { bind() AddressingPolicy::bind (\ref senf::AddressingPolicyBase) peer() AddressingPolicy::peer (\ref senf::AddressingPolicyBase) local() AddressingPolicy::local (\ref senf::AddressingPolicyBase) - rcvbuf() BufferingPolicy::sndbuf (\ref senf::BufferingPolicyBase) - sndbuf() BufferingPolicy::rcvbuf (\ref senf::BufferingPolicyBase) It is important to note, that not all members are always accessible. Which are depends on @@ -87,16 +85,16 @@ namespace senf { \see \ref policy_group \n \ref protocol_group */ - template + template class ClientSocketHandle - : public SocketHandle + : public SocketHandle { public: /////////////////////////////////////////////////////////////////////////// // Types /// Address type from the addressing policy - typedef typename Policy::AddressingPolicy::Address Address; + typedef typename SPolicy::AddressingPolicy::Address Address; /// 'Best' type for passing address as parameter /** Depending on the type of \c Address, this will be either Address or Address const &. See ServerSocketHandle; + typedef ServerSocketHandle ServerSocketHandle; /////////////////////////////////////////////////////////////////////////// ///\name Structors and default members @@ -126,18 +124,18 @@ namespace senf { # ifndef DOXYGEN template ClientSocketHandle(ClientSocketHandle other, - typename SocketHandle::template IsCompatible::type * = 0); + typename SocketHandle::template IsCompatible::type * = 0); # else ClientSocketHandle(ClientSocketHandle other); # endif # ifndef DOXYGEN template - typename SocketHandle::template IsCompatible::type const & + typename SocketHandle::template IsCompatible::type const & operator=(ClientSocketHandle other); # else template - OtherPolicy const & operator=(ClientSocketHandle other); + ClientSocketHandle const & operator=(ClientSocketHandle other); # endif ///@} @@ -422,24 +420,6 @@ namespace senf { ///@} - /////////////////////////////////////////////////////////////////////////// - ///\name Buffering - ///@{ - - unsigned rcvbuf (); ///< Check size of receive buffer - /**< \returns size of receive buffer in bytes */ - void rcvbuf (unsigned size); - ///< Set size of receive buffer - /**< \param[in] size size of receive buffer in bytes */ - - unsigned sndbuf (); ///< Check size of send buffer - /**< \returns size of send buffer in bytes */ - void sndbuf (unsigned size); - ///< Set size of send buffer - /**< \param[in] size size of send buffer in bytes */ - - ///@} - static ClientSocketHandle cast_static(FileHandle handle); static ClientSocketHandle cast_dynamic(FileHandle handle); @@ -449,13 +429,12 @@ namespace senf { protected: ClientSocketHandle(FileHandle other, bool isChecked); - explicit ClientSocketHandle(std::auto_ptr protocol, - int fd = -1); + explicit ClientSocketHandle(std::auto_ptr body); private: unsigned available(); - friend class senf::ServerSocketHandle; + friend class senf::ServerSocketHandle; }; /// @}