X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FSocket%2FCommunicationPolicy.hh;h=c007d7390c09472abdea7845d3dbfc6c526562d8;hb=32bf29e751e6c73ca2bc78c21996e4320e934673;hp=47dc01f57943efd0c259d0681a7292002910baf7;hpb=d23a1b541174b50b9787d26d1d326903fe938ef6;p=senf.git diff --git a/senf/Socket/CommunicationPolicy.hh b/senf/Socket/CommunicationPolicy.hh index 47dc01f..c007d73 100644 --- a/senf/Socket/CommunicationPolicy.hh +++ b/senf/Socket/CommunicationPolicy.hh @@ -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