X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FSocket%2FProtocols%2FBSDAddressingPolicy.hh;h=a4b17ac5e7f6da6a66b130fc46555c617d002335;hb=4d345995adff65ddb6e8aca34ef5eb30ce0fe934;hp=8ec831c5982525bf344f0beeffbfd6c5a8896ab8;hpb=601d1f509f5bb24df167a4dd5a20da67a0af9af8;p=senf.git diff --git a/senf/Socket/Protocols/BSDAddressingPolicy.hh b/senf/Socket/Protocols/BSDAddressingPolicy.hh index 8ec831c..a4b17ac 100644 --- a/senf/Socket/Protocols/BSDAddressingPolicy.hh +++ b/senf/Socket/Protocols/BSDAddressingPolicy.hh @@ -31,10 +31,9 @@ #define HH_SENF_Socket_Protocols_BSDAddressingPolicy_ 1 // Custom includes -#include "../SocketHandle.hh" -#include "../FileHandle.hh" -#include "../SocketPolicy.hh" -#include "../CommunicationPolicy.hh" +#include +#include +#include #include "BSDSocketAddress.hh" //#include "BSDAddressingPolicy.mpp" @@ -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 */