PPI: Checkin of first compiling (yet not working) version
[senf.git] / Socket / CommunicationPolicy.cc
index 8523966..d67a923 100644 (file)
@@ -1,6 +1,6 @@
 // $Id$
 //
-// Copyright (C) 2006 
+// Copyright (C) 2006
 // Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS)
 // Kompetenzzentrum fuer Satelitenkommunikation (SatCom)
 //     Stefan Bund <stefan.bund@fokus.fraunhofer.de>
@@ -20,7 +20,9 @@
 // Free Software Foundation, Inc.,
 // 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
-// Definition of non-inline non-template functions
+/** \file
+    \brief CommunicationPolicy non-inline non-template implementation
+ */
 
 #include "CommunicationPolicy.hh"
 //#include "CommunicationPolicy.ih"
 #define prefix_
 ///////////////////////////////cc.p////////////////////////////////////////
 
-prefix_ void satcom::lib::ConnectedCommunicationPolicy::listen(FileHandle handle,
-                                                               unsigned backlog)
+prefix_ void senf::ConnectedCommunicationPolicy::do_listen(FileHandle handle,
+                                                           unsigned backlog)
 {
     ::listen(handle.fd(),backlog);
 }
 
-prefix_ int satcom::lib::ConnectedCommunicationPolicy::do_accept(FileHandle handle,
+prefix_ int senf::ConnectedCommunicationPolicy::do_accept(FileHandle handle,
                                                                  struct sockaddr * addr,
                                                                  unsigned len)
 {
@@ -53,7 +55,6 @@ prefix_ int satcom::lib::ConnectedCommunicationPolicy::do_accept(FileHandle hand
             switch (errno) {
             case EWOULDBLOCK:
                 return -1;
-                break;
             case EINTR:
                 break;
             default:
@@ -70,5 +71,10 @@ prefix_ int satcom::lib::ConnectedCommunicationPolicy::do_accept(FileHandle hand
 \f
 // Local Variables:
 // mode: c++
-// c-file-style: "satcom"
+// fill-column: 100
+// c-file-style: "senf"
+// indent-tabs-mode: nil
+// ispell-local-dictionary: "american"
+// compile-command: "scons -u test"
+// comment-column: 40
 // End: