summaryrefslogtreecommitdiff
path: root/src/transport/transport.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/transport.h')
-rw-r--r--src/transport/transport.h42
1 files changed, 8 insertions, 34 deletions
diff --git a/src/transport/transport.h b/src/transport/transport.h
index 5e92bfb1e..a336cd9b0 100644
--- a/src/transport/transport.h
+++ b/src/transport/transport.h
@@ -30,7 +30,7 @@
#include "gnunet_time_lib.h"
#include "gnunet_transport_service.h"
-#define DEBUG_TRANSPORT GNUNET_NO
+#define DEBUG_TRANSPORT GNUNET_YES
/**
* For how long do we allow unused bandwidth
@@ -57,10 +57,9 @@ struct ConnectInfoMessage
struct GNUNET_MessageHeader header;
/**
- * Current quota for outbound traffic in bytes/ms.
- * (should be equal to system default)
+ * Transport distance metric (i.e. hops for DV)
*/
- uint32_t quota_out GNUNET_PACKED;
+ uint32_t distance;
/**
* Latency estimate.
@@ -72,11 +71,6 @@ struct ConnectInfoMessage
*/
struct GNUNET_PeerIdentity id;
- /**
- * Transport distance metric (i.e. hops for DV)
- */
- uint32_t distance;
-
};
@@ -133,31 +127,6 @@ struct QuotaSetMessage
/**
- * Message used to ask the transport service to connect
- * to a particular peer.
- */
-struct TryConnectMessage
-{
-
- /**
- * Type will be GNUNET_MESSAGE_TYPE_TRANSPORT_TRY_CONNECT.
- */
- struct GNUNET_MessageHeader header;
-
- /**
- * Always zero.
- */
- uint32_t reserved GNUNET_PACKED;
-
- /**
- * 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.
*/
@@ -213,6 +182,11 @@ struct SendOkMessage
uint32_t success GNUNET_PACKED;
/**
+ * Latency estimate.
+ */
+ struct GNUNET_TIME_RelativeNBO latency;
+
+ /**
* Which peer can send more now?
*/
struct GNUNET_PeerIdentity peer;