[hipl-commit] [trunk] Rev 4019: Updated doxygen for test/conntest-server.c

  • From: Miika Komu <miika@xxxxxx>
  • To: hipl-commit@xxxxxxxxxxxxx
  • Date: Thu, 18 Mar 2010 20:26:44 +0200

Committer: Miika Komu <miika@xxxxxx>
Date: 18/03/2010 at 20:26:44
Revision: 4019
Revision-id: miika@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: trunk

Log:
  Updated doxygen for test/conntest-server.c

Modified:
  M  test/conntest-server.c

=== modified file 'test/conntest-server.c'
--- test/conntest-server.c      2010-03-09 18:26:22 +0000
+++ test/conntest-server.c      2010-03-18 18:26:40 +0000
@@ -1,12 +1,12 @@
-/*
- * Get data from client and send it back (echo server). Use this with
- * conntest-client.
- *
- * Bugs:
- * - this is a kludge
- *
- * Todo:
- * - rewrite/refactor for better modularity
+/**
+ * @file
+ *
+ * Distributed under <a href="http://www.gnu.org/licenses/gpl2.txt";>GNU/GPL</a>
+ *
+ * An echo server that receives data from network and echoes it back. Use this 
with
+ * with conntest-client
+ *
+ * @todo rewrite/refactor for better modularity
  */
 
 /* required for s6_addr32 */
@@ -31,6 +31,11 @@
 #include "config.h"
 #include "conntest.h"
 
+/**
+ * handle signals
+ *
+ * @param signo the signal number
+ */
 static void sig_handler(int signo)
 {
     if (signo == SIGTERM) {
@@ -41,6 +46,13 @@
     }
 }
 
+/**
+ * Main function.
+ *
+ * @param argc command line argument count.
+ * @param argv command line arguments.
+ * @return zero on success or non-zero on failure
+ */
 int main(int argc, char *argv[])
 {
     int port;

Other related posts:

  • » [hipl-commit] [trunk] Rev 4019: Updated doxygen for test/conntest-server.c - Miika Komu