diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-02-16 16:26:48 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-02-16 16:26:48 +0000 |
commit | 67342da57d1baeea6a486b9bf9feac670d53c8d2 (patch) | |
tree | 3206ba2310922e4e9ff6e51affbad3ae99bc5fb9 /src/transport/transport.h | |
parent | 17c88acd603c4f8ee1805c0db851cc9ce112f75f (diff) | |
download | gnunet-67342da57d1baeea6a486b9bf9feac670d53c8d2.tar.gz gnunet-67342da57d1baeea6a486b9bf9feac670d53c8d2.zip |
making things nice by breaking tons
Diffstat (limited to 'src/transport/transport.h')
-rw-r--r-- | src/transport/transport.h | 42 |
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 @@ | |||
30 | #include "gnunet_time_lib.h" | 30 | #include "gnunet_time_lib.h" |
31 | #include "gnunet_transport_service.h" | 31 | #include "gnunet_transport_service.h" |
32 | 32 | ||
33 | #define DEBUG_TRANSPORT GNUNET_NO | 33 | #define DEBUG_TRANSPORT GNUNET_YES |
34 | 34 | ||
35 | /** | 35 | /** |
36 | * For how long do we allow unused bandwidth | 36 | * For how long do we allow unused bandwidth |
@@ -57,10 +57,9 @@ struct ConnectInfoMessage | |||
57 | struct GNUNET_MessageHeader header; | 57 | struct GNUNET_MessageHeader header; |
58 | 58 | ||
59 | /** | 59 | /** |
60 | * Current quota for outbound traffic in bytes/ms. | 60 | * Transport distance metric (i.e. hops for DV) |
61 | * (should be equal to system default) | ||
62 | */ | 61 | */ |
63 | uint32_t quota_out GNUNET_PACKED; | 62 | uint32_t distance; |
64 | 63 | ||
65 | /** | 64 | /** |
66 | * Latency estimate. | 65 | * Latency estimate. |
@@ -72,11 +71,6 @@ struct ConnectInfoMessage | |||
72 | */ | 71 | */ |
73 | struct GNUNET_PeerIdentity id; | 72 | struct GNUNET_PeerIdentity id; |
74 | 73 | ||
75 | /** | ||
76 | * Transport distance metric (i.e. hops for DV) | ||
77 | */ | ||
78 | uint32_t distance; | ||
79 | |||
80 | }; | 74 | }; |
81 | 75 | ||
82 | 76 | ||
@@ -133,31 +127,6 @@ struct QuotaSetMessage | |||
133 | 127 | ||
134 | 128 | ||
135 | /** | 129 | /** |
136 | * Message used to ask the transport service to connect | ||
137 | * to a particular peer. | ||
138 | */ | ||
139 | struct TryConnectMessage | ||
140 | { | ||
141 | |||
142 | /** | ||
143 | * Type will be GNUNET_MESSAGE_TYPE_TRANSPORT_TRY_CONNECT. | ||
144 | */ | ||
145 | struct GNUNET_MessageHeader header; | ||
146 | |||
147 | /** | ||
148 | * Always zero. | ||
149 | */ | ||
150 | uint32_t reserved GNUNET_PACKED; | ||
151 | |||
152 | /** | ||
153 | * About which peer are we talking here? | ||
154 | */ | ||
155 | struct GNUNET_PeerIdentity peer; | ||
156 | |||
157 | }; | ||
158 | |||
159 | |||
160 | /** | ||
161 | * Message used to notify the transport API about a message | 130 | * Message used to notify the transport API about a message |
162 | * received from the network. The actual message follows. | 131 | * received from the network. The actual message follows. |
163 | */ | 132 | */ |
@@ -213,6 +182,11 @@ struct SendOkMessage | |||
213 | uint32_t success GNUNET_PACKED; | 182 | uint32_t success GNUNET_PACKED; |
214 | 183 | ||
215 | /** | 184 | /** |
185 | * Latency estimate. | ||
186 | */ | ||
187 | struct GNUNET_TIME_RelativeNBO latency; | ||
188 | |||
189 | /** | ||
216 | * Which peer can send more now? | 190 | * Which peer can send more now? |
217 | */ | 191 | */ |
218 | struct GNUNET_PeerIdentity peer; | 192 | struct GNUNET_PeerIdentity peer; |