PPI: Add missing TargetDgramWriter doku
[senf.git] / Socket / CommunicationPolicy.cti
index 92b410b..6675ed4 100644 (file)
@@ -1,9 +1,9 @@
 // $Id$
 //
 // Copyright (C) 2006
-// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS)
-// Kompetenzzentrum fuer Satelitenkommunikation (SatCom)
-//     Stefan Bund <stefan.bund@fokus.fraunhofer.de>
+// Fraunhofer Institute for Open Communication Systems (FOKUS)
+// Competence Center NETwork research (NET), St. Augustin, GERMANY
+//     Stefan Bund <g0dil@berlios.de>
 //
 // This program is free software; you can redistribute it and/or modify
 // it under the terms of the GNU General Public License as published by
 #define prefix_ inline
 ///////////////////////////////cti.p///////////////////////////////////////
 
-template <class Policy>
+#ifndef DOXYGEN
+template <class SPolicy>
 prefix_ void senf::ConnectedCommunicationPolicy::
-listen(ServerSocketHandle<Policy> handle, unsigned backlog,
-       typename IfAddressingPolicyIsNot<Policy,NoAddressingPolicy>::type *)
+listen(ServerSocketHandle<SPolicy> handle, unsigned backlog,
+       typename IfAddressingPolicyIsNot<SPolicy,NoAddressingPolicy>::type *)
 {
     do_listen(handle, backlog);
 }
+#else
+template <class SPolicy>
+prefix_ void senf::ConnectedCommunicationPolicy::
+listen(ServerSocketHandle<SPolicy> handle, unsigned backlog)
+{}
+#endif
 
-template <class Policy>
+#ifndef DOXYGEN
+template <class SPolicy>
 prefix_ int senf::ConnectedCommunicationPolicy::
-accept(ServerSocketHandle<Policy> handle,
-       typename ServerSocketHandle<Policy>::Address & address,
-       typename IfAddressingPolicyIsNot<Policy,NoAddressingPolicy>::type *)
+accept(ServerSocketHandle<SPolicy> handle,
+       typename ServerSocketHandle<SPolicy>::Address & address,
+       typename IfAddressingPolicyIsNot<SPolicy,NoAddressingPolicy>::type *)
 {
-    return do_accept(handle,address.sockaddr_p(),address.sockaddr_len());
+    return do_accept(handle,address.sockaddr_p(),address.socklen());
 }
+#else
+template <class SPolicy>
+prefix_ int senf::ConnectedCommunicationPolicy::
+accept(ServerSocketHandle<SPolicy> handle,
+       typename ServerSocketHandle<SPolicy>::Address & address)
+{}
+#endif
 
 ///////////////////////////////cti.e///////////////////////////////////////
 #undef prefix_