X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FSocket%2FProtocols%2FBSDAddressingPolicy.hh;h=a4b17ac5e7f6da6a66b130fc46555c617d002335;hb=cb50871835b7a5c37e4fd32d38de67fa12570ebc;hp=fd8585e316dae40744cdbd7369f1c61b9ecc35ba;hpb=26610f603ebdd465307b9621f532c1fe19fd5571;p=senf.git diff --git a/senf/Socket/Protocols/BSDAddressingPolicy.hh b/senf/Socket/Protocols/BSDAddressingPolicy.hh index fd8585e..a4b17ac 100644 --- a/senf/Socket/Protocols/BSDAddressingPolicy.hh +++ b/senf/Socket/Protocols/BSDAddressingPolicy.hh @@ -33,7 +33,6 @@ // Custom includes #include #include -#include #include #include "BSDSocketAddress.hh" @@ -51,10 +50,10 @@ namespace senf { */ struct BSDAddressingPolicyMixinBase { - static void do_local(FileHandle handle, struct sockaddr * addr, socklen_t * len); - static void do_peer(FileHandle handle, struct sockaddr * addr, socklen_t * len); - static void do_bind(FileHandle handle, struct sockaddr const * addr, socklen_t len); - static void do_connect(FileHandle handle, struct sockaddr const * addr, socklen_t len); + static void do_local(FileHandle const & handle, struct sockaddr * addr, socklen_t * len); + static void do_peer(FileHandle const & handle, struct sockaddr * addr, socklen_t * len); + static void do_bind(FileHandle const & handle, struct sockaddr const * addr, socklen_t len); + static void do_connect(FileHandle const & handle, struct sockaddr const * addr, socklen_t len); }; /** \brief Template for generic AddressingPolicy implementation based on the BSD socket API @@ -87,11 +86,11 @@ namespace senf { { # ifndef DOXYGEN template - static void peer(SocketHandle handle, Address & addr, + static void peer(SocketHandle const & handle, Address & addr, typename IfCommunicationPolicyIs::type * = 0); # else template - static void peer(SocketHandle handle, Address & addr); + static void peer(SocketHandle const & handle, Address & addr); ///< Return address of remote peer on connected sockets /**< This member is only available if the socket handles communication policy is ConnectedCommunicationPolicy. @@ -99,18 +98,18 @@ namespace senf { \param[in] handle socket handle to get peer address of \param[out] addr address of remote peer */ # endif - static void local(FileHandle handle, Address & addr); + static void local(FileHandle const & handle, Address & addr); ///< Return local of socket /**< \param[in] handle socket handle to check \param[out] addr local socket address */ # ifndef DOXYGEN template - static void connect(SocketHandle handle, Address const & addr, + static void connect(SocketHandle const & handle, Address const & addr, typename IfCommunicationPolicyIs::type * = 0); # else template - static void connect(SocketHandle handle, Address const & addr); + static void connect(SocketHandle const & handle, Address const & addr); ///< Connect to remote host /**< This member is only available if the socket handles communication policy is ConnectedCommunicationPolicy. @@ -119,7 +118,7 @@ namespace senf { \param[in] addr address of remote peer to connect to */ # endif - static void bind(FileHandle handle, Address const & addr); + static void bind(FileHandle const & handle, Address const & addr); ///< Set local socket address /**< \param[in] handle socket handle \param[in] addr local socket address */