gnunet_transport_DEPENDENCIES = \
libgnunettransport.la
-# transport with 3way handshake
gnunet_service_transport_SOURCES = \
gnunet-service-transport_3way.c gnunet-service-transport.h \
gnunet-service-transport_blacklist.h gnunet-service-transport_blacklist.c \
$(top_builddir)/src/util/libgnunetutil.la \
$(GN_GLPK) \
$(GN_LIBINTL)
-#
-gnunet_service_transport_SOURCES = \
- gnunet-service-transport.c gnunet-service-transport.h \
- gnunet-service-transport_blacklist.h gnunet-service-transport_blacklist.c \
- gnunet-service-transport_clients.h gnunet-service-transport_clients.c \
- gnunet-service-transport_hello.h gnunet-service-transport_hello.c \
- gnunet-service-transport_neighbours.h gnunet-service-transport_neighbours.c \
- gnunet-service-transport_plugins.h gnunet-service-transport_plugins.c \
- gnunet-service-transport_validation.h gnunet-service-transport_validation.c
-gnunet_service_transport_LDADD = \
- $(top_builddir)/src/ats/libgnunetats.la \
- $(top_builddir)/src/hello/libgnunethello.la \
- $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
- $(top_builddir)/src/statistics/libgnunetstatistics.la \
- $(top_builddir)/src/util/libgnunetutil.la \
- $(GN_GLPK) \
- $(GN_LIBINTL)
+
+#gnunet_service_transport_SOURCES = \
+# gnunet-service-transport.c gnunet-service-transport.h \
+# gnunet-service-transport_blacklist.h gnunet-service-transport_blacklist.c \
+# gnunet-service-transport_clients.h gnunet-service-transport_clients.c \
+# gnunet-service-transport_hello.h gnunet-service-transport_hello.c \
+# gnunet-service-transport_neighbours.h gnunet-service-transport_neighbours.c \
+# gnunet-service-transport_plugins.h gnunet-service-transport_plugins.c \
+# gnunet-service-transport_validation.h gnunet-service-transport_validation.c
+#gnunet_service_transport_LDADD = \
+# $(top_builddir)/src/ats/libgnunetats.la \
+# $(top_builddir)/src/hello/libgnunethello.la \
+# $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
+# $(top_builddir)/src/statistics/libgnunetstatistics.la \
+# $(top_builddir)/src/util/libgnunetutil.la \
+# $(GN_GLPK) \
+# $(GN_LIBINTL)
+
plugin_LTLIBRARIES = \
libgnunet_plugin_transport_tcp.la \
neighbours = GNUNET_CONTAINER_multihashmap_create (NEIGHBOUR_TABLE_SIZE);
}
-/*
+
static void
send_disconnect_cont (void *cls,
const struct GNUNET_PeerIdentity * target,
int result)
{
+#if DEBUG_TRANSPORT
struct NeighbourMapEntry *n = cls;
-
-}*/
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Sending DISCONNECT message to peer `%4s': %i\n",
+ GNUNET_i2s (&n->id), result);
+#endif
+}
static int
send_disconnect (struct NeighbourMapEntry *n)
ret = send_with_plugin(&n->id, (const char *) &disconnect_msg, sizeof (disconnect_msg),
UINT32_MAX, GNUNET_TIME_UNIT_FOREVER_REL,
n->session, n->plugin_name, n->addr, n->addrlen,
- GNUNET_YES, NULL, NULL);
+ GNUNET_YES, &send_disconnect_cont, n);
if (ret == GNUNET_SYSERR)
return GNUNET_SYSERR;
struct BlackListCheckContext * bcc = NULL;
#if DEBUG_TRANSPORT
-#endif
- GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Received CONNECT message from peer `%s'\n", GNUNET_i2s (peer));
-
+#endif
if (ntohs (message->size) != sizeof (struct SessionConnectMessage))
{