[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r15411 - in gnunet/src: include transport
From: |
gnunet |
Subject: |
[GNUnet-SVN] r15411 - in gnunet/src: include transport |
Date: |
Sat, 4 Jun 2011 00:15:09 +0200 |
Author: grothoff
Date: 2011-06-04 00:15:09 +0200 (Sat, 04 Jun 2011)
New Revision: 15411
Modified:
gnunet/src/include/gnunet_transport_service.h
gnunet/src/transport/transport.h
gnunet/src/transport/transport_api.c
Log:
stuff
Modified: gnunet/src/include/gnunet_transport_service.h
===================================================================
--- gnunet/src/include/gnunet_transport_service.h 2011-06-03 20:44:07 UTC
(rev 15410)
+++ gnunet/src/include/gnunet_transport_service.h 2011-06-03 22:15:09 UTC
(rev 15411)
@@ -491,6 +491,18 @@
/**
+ * Ask the transport service to establish a connection to
+ * the given peer.
+ *
+ * @param handle connection to transport service
+ * @param target who we should try to connect to
+ */
+void
+GNUNET_TRANSPORT_try_connect (struct GNUNET_TRANSPORT_Handle *handle,
+ const struct GNUNET_PeerIdentity *target);
+
+
+/**
* Set the share of incoming/outgoing bandwidth for the given
* peer to the specified amount.
*
@@ -503,9 +515,7 @@
GNUNET_TRANSPORT_set_quota (struct GNUNET_TRANSPORT_Handle *handle,
const struct GNUNET_PeerIdentity *target,
struct GNUNET_BANDWIDTH_Value32NBO quota_in,
- struct GNUNET_BANDWIDTH_Value32NBO quota_out,
- struct GNUNET_TIME_Relative timeout,
- GNUNET_SCHEDULER_Task cont, void *cont_cls);
+ struct GNUNET_BANDWIDTH_Value32NBO quota_out);
/**
Modified: gnunet/src/transport/transport.h
===================================================================
--- gnunet/src/transport/transport.h 2011-06-03 20:44:07 UTC (rev 15410)
+++ gnunet/src/transport/transport.h 2011-06-03 22:15:09 UTC (rev 15411)
@@ -182,6 +182,30 @@
/**
+ * Message used to ask the transport service to create a connection.
+ */
+struct TryConnectMessage
+{
+
+ /**
+ * Type will be GNUNET_MESSAGE_TYPE_TRANSPORT_TRY_CONNECT
+ */
+ struct GNUNET_MessageHeader header;
+
+ /**
+ * for alignment
+ */
+ uint32_t reserved;
+
+ /**
+ * About which peer are we talking here?
+ */
+ struct GNUNET_PeerIdentity peer;
+
+};
+
+
+/**
* Message used to notify the transport API about a message
* received from the network. The actual message follows.
*/
Modified: gnunet/src/transport/transport_api.c
===================================================================
--- gnunet/src/transport/transport_api.c 2011-06-03 20:44:07 UTC (rev
15410)
+++ gnunet/src/transport/transport_api.c 2011-06-03 22:15:09 UTC (rev
15411)
@@ -972,7 +972,8 @@
sqc->quota_in = quota_in;
schedule_control_transmit (handle,
sizeof (struct QuotaSetMessage),
- GNUNET_NO, timeout, &send_set_quota, sqc);
+ GNUNET_NO,
+ GNUNET_TIME_UNIT_FOREVER_REL, &send_set_quota,
sqc);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r15411 - in gnunet/src: include transport,
gnunet <=