X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FGenericAddressingPolicy.hh;h=b8bcfc346757c613e29a7a6ccff607301eb8358b;hb=afa15c46e79de0f407d41fda78b6e8d08700caa8;hp=9094879e7bba9913a23a9146338e132b951f3576;hpb=2f0c9a98a505a4b2076866db93b8e2e1b98f2ff4;p=senf.git diff --git a/Socket/GenericAddressingPolicy.hh b/Socket/GenericAddressingPolicy.hh index 9094879..b8bcfc3 100644 --- a/Socket/GenericAddressingPolicy.hh +++ b/Socket/GenericAddressingPolicy.hh @@ -81,23 +81,32 @@ namespace senf { struct GenericAddressingPolicy : private GenericAddressingPolicy_Base { +# ifndef DOXYGEN template static void peer(SocketHandle handle, Address & addr, typename IfCommunicationPolicyIs::type * = 0); +# else + template + static void peer(SocketHandle handle, Address & addr); ///< Return address of remote peer on connected sockets /**< This member is only available if the socket handles communication policy is ConnectedCommunicationPolicy. \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); ///< 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, typename IfCommunicationPolicyIs::type * = 0); +# else + template + static void connect(SocketHandle handle, Address const & addr); ///< Connect to remote host /**< This member is only available if the socket handles communication policy is ConnectedCommunicationPolicy. @@ -105,6 +114,7 @@ namespace senf { \param[in] handle socket handle \param[in] addr address of remote peer to connect to */ +# endif static void bind(FileHandle handle, Address const & addr); ///< Set local socket address /**< \param[in] handle socket handle @@ -129,4 +139,6 @@ namespace senf { // c-file-style: "senf" // indent-tabs-mode: nil // ispell-local-dictionary: "american" +// compile-command: "scons -u test" +// comment-column: 40 // End: