-logging in mesh peer disconnect handler
authorSree Harsha Totakura <totakura@in.tum.de>
Tue, 17 Apr 2012 14:41:50 +0000 (14:41 +0000)
committerSree Harsha Totakura <totakura@in.tum.de>
Tue, 17 Apr 2012 14:41:50 +0000 (14:41 +0000)
src/stream/stream_api.c

index ef0065b22e0503a11a85533e2cf1b27b207514b0..a61437a2c04e38a9d623d016316c757c6e6c835c 100644 (file)
@@ -2637,7 +2637,13 @@ static void
 mesh_peer_disconnect_callback (void *cls,
                                const struct GNUNET_PeerIdentity *peer)
 {
-
+  struct GNUNET_STREAM_Socket *socket=cls;
+  
+  /* If the state is SHUTDOWN its ok; else set the state of the socket to SYSERR */
+  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+              "%x: Other peer %x disconnected \n",
+              socket->our_id,
+              socket->other_peer);
 }