Socket/Protocols/Raw: EUI64 documentation
[senf.git] / Socket / CommunicationPolicy.cti
index 98711da..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>
+// Copyright (C) 2006
+// 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
@@ -20,7 +20,9 @@
 // Free Software Foundation, Inc.,
 // 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
-// Definition of inline template functions
+/** \file
+    \brief CommunicationPolicy inline template implementation
+ */
 
 //#include "CommunicationPolicy.ih"
 
 #define prefix_ inline
 ///////////////////////////////cti.p///////////////////////////////////////
 
-template <class Policy>
+#ifndef DOXYGEN
+template <class SPolicy>
+prefix_ void senf::ConnectedCommunicationPolicy::
+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
+
+#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_
@@ -44,5 +69,10 @@ accept(ServerSocketHandle<Policy> handle,
 \f
 // Local Variables:
 // mode: c++
+// fill-column: 100
 // c-file-style: "senf"
+// indent-tabs-mode: nil
+// ispell-local-dictionary: "american"
+// compile-command: "scons -u test"
+// comment-column: 40
 // End: