gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r563 - in GNUnet/src: server transports


From: grothoff
Subject: [GNUnet-SVN] r563 - in GNUnet/src: server transports
Date: Fri, 1 Apr 2005 21:51:01 -0800 (PST)

Author: grothoff
Date: 2005-04-01 21:50:59 -0800 (Fri, 01 Apr 2005)
New Revision: 563

Modified:
   GNUnet/src/server/gnunet-transport-check.c
   GNUnet/src/transports/tcp.c
Log:
msg

Modified: GNUnet/src/server/gnunet-transport-check.c
===================================================================
--- GNUnet/src/server/gnunet-transport-check.c  2005-04-02 05:45:57 UTC (rev 
562)
+++ GNUnet/src/server/gnunet-transport-check.c  2005-04-02 05:50:59 UTC (rev 
563)
@@ -219,7 +219,7 @@
   stats[0]++; /* one more seen */
   if (NO == transport->isAvailable(ntohs(helo->protocol))) {
     fprintf(stderr,
-           " Transport %d not available\n",
+           _(" Transport %d not available\n"),
            ntohs(helo->protocol));
     FREE(helo);
     return;
@@ -241,7 +241,7 @@
                               &tsession)) {
     FREE(helo);
     fprintf(stderr,
-           " Connection failed\n");
+           _(" Connection failed\n"));
     return;
   }
   if (testConfigurationString("GNUNET-TRANSPORT-CHECK",
@@ -267,6 +267,8 @@
   FREE(ping);
   /* send ping */
   ok = NO;
+  LOG(LOG_DEBUG,
+      "Sending PING\n");
   if (OK != transport->sendReliable(tsession,
                                    msg,
                                    len)) {

Modified: GNUnet/src/transports/tcp.c
===================================================================
--- GNUnet/src/transports/tcp.c 2005-04-02 05:45:57 UTC (rev 562)
+++ GNUnet/src/transports/tcp.c 2005-04-02 05:50:59 UTC (rev 563)
@@ -876,8 +876,18 @@
                                 unsigned int ssize) {
   int ok;
 
-  if (tcp_shutdown == YES)
+#if TCP_DEBUG
+  LOG(LOG_DEBUG, 
+      "tcpDirectSendReliable called to transmit %u bytes.\n",
+      ssize);
+#endif   
+  if (tcp_shutdown == YES) {
+#if DEBUG_TCP
+    LOG(LOG_INFO,
+       "tcpDirectSendReliable called, but TCP service is shutdown\n");
+#endif
     return SYSERR;
+  }
   if (tcpSession->sock == -1) {
 #if DEBUG_TCP
     LOG(LOG_INFO,
@@ -898,6 +908,11 @@
     memcpy(&tcpSession->wbuff[old],
           mp,
           ssize);
+#if TCP_DEBUG
+    LOG(LOG_DEBUG, 
+       "tcpDirectSendReliable appended message to send buffer.\n");
+#endif   
+
     ok = OK;
   } else {
     ok = tcpDirectSend(tcpSession,





reply via email to

[Prev in Thread] Current Thread [Next in Thread]