// $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
#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_
\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: