X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FSocket%2FCommunicationPolicy.hh;h=b5a73f4e6a9df989497932cca04d2239f06c1c52;hb=e3179a2123ad51d0d9eb63834a581145c4f77c92;hp=47dc01f57943efd0c259d0681a7292002910baf7;hpb=601d1f509f5bb24df167a4dd5a20da67a0af9af8;p=senf.git diff --git a/senf/Socket/CommunicationPolicy.hh b/senf/Socket/CommunicationPolicy.hh index 47dc01f..b5a73f4 100644 --- a/senf/Socket/CommunicationPolicy.hh +++ b/senf/Socket/CommunicationPolicy.hh @@ -33,14 +33,14 @@ #include "FileHandle.hh" //#include "CommunicationPolicy.mpp" -///////////////////////////////hh.p//////////////////////////////////////// +//-///////////////////////////////////////////////////////////////////////////////////////////////// struct sockaddr; namespace senf { /// \addtogroup policy_impl_group - /// @{ + //\{ template class ServerSocketHandle; @@ -53,11 +53,11 @@ namespace senf { { # ifndef DOXYGEN template - static void listen(ServerSocketHandle handle, unsigned backlog, + static void listen(ServerSocketHandle const & handle, unsigned backlog, typename IfAddressingPolicyIsNot::type * = 0); # else template - static void listen(ServerSocketHandle handle, unsigned backlog); + static void listen(ServerSocketHandle const & handle, unsigned backlog); ///< Enable establishing new connections on the socket /**< \param[in] handle socket handle to enable reception on \param[in] backlog size of backlog queue */ @@ -65,12 +65,12 @@ namespace senf { # ifndef DOXYGEN template - static int accept(ServerSocketHandle handle, + static int accept(ServerSocketHandle const & handle, typename ServerSocketHandle::Address & address, typename IfAddressingPolicyIsNot::type * = 0); # else template - static int accept(ServerSocketHandle handle, + static int accept(ServerSocketHandle const & handle, typename ServerSocketHandle::Address & address); ///< accept a new connection on the socket. /**< The accept() member will return a new client file @@ -84,7 +84,7 @@ namespace senf { \returns file descriptor of new client socket */ # endif - static int accept(FileHandle handle); + static int accept(FileHandle const & handle); ///< accept a new connection on the socket. /**< The accept() member will return a new client file descriptor. This file descriptor will be used by the @@ -95,8 +95,8 @@ namespace senf { \returns file descriptor of new client socket */ private: - static void do_listen(FileHandle handle, unsigned backlog); - static int do_accept(FileHandle handle, struct sockaddr * addr, unsigned len); + static void do_listen(FileHandle const & handle, unsigned backlog); + static int do_accept(FileHandle const & handle, struct sockaddr * addr, unsigned len); }; /** \brief CommunicationPolicy for unconnected sockets @@ -109,12 +109,12 @@ namespace senf { struct UnconnectedCommunicationPolicy : public CommunicationPolicyBase {}; - /// @} + //\} } -///////////////////////////////hh.e//////////////////////////////////////// +//-///////////////////////////////////////////////////////////////////////////////////////////////// #include "CommunicationPolicy.cci" //#include "CommunicationPolicy.ct" #include "CommunicationPolicy.cti"