diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2010-11-30 12:19:48 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2010-11-30 12:19:48 +0000 |
commit | 1f11396323462186aa2795983d97d7bc168301fb (patch) | |
tree | a78f3c0aaa771cccae2d339b4159862e904370b9 /src/transport/transport.h | |
parent | 542c4a38fb3ed999dc88c2691060b9f6f7945f7a (diff) | |
download | gnunet-1f11396323462186aa2795983d97d7bc168301fb.tar.gz gnunet-1f11396323462186aa2795983d97d7bc168301fb.zip |
changes to transport_api
Diffstat (limited to 'src/transport/transport.h')
-rw-r--r-- | src/transport/transport.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/transport/transport.h b/src/transport/transport.h index 747986439..8f22abd18 100644 --- a/src/transport/transport.h +++ b/src/transport/transport.h | |||
@@ -86,6 +86,12 @@ struct ConnectInfoMessage | |||
86 | struct GNUNET_MessageHeader header; | 86 | struct GNUNET_MessageHeader header; |
87 | 87 | ||
88 | /** | 88 | /** |
89 | * Number of ATS key-value pairs that follow this struct | ||
90 | * (excluding the 0-terminator). | ||
91 | */ | ||
92 | uint32_t ats_count GNUNET_PACKED; | ||
93 | |||
94 | /** | ||
89 | * Transport distance metric (i.e. hops for DV) | 95 | * Transport distance metric (i.e. hops for DV) |
90 | */ | 96 | */ |
91 | uint32_t distance; | 97 | uint32_t distance; |
@@ -100,6 +106,11 @@ struct ConnectInfoMessage | |||
100 | */ | 106 | */ |
101 | struct GNUNET_PeerIdentity id; | 107 | struct GNUNET_PeerIdentity id; |
102 | 108 | ||
109 | /** | ||
110 | * First of the ATS information blocks (we must have at least | ||
111 | * one due to the 0-termination requirement). | ||
112 | */ | ||
113 | struct GNUNET_TRANSPORT_ATS_Information ats; | ||
103 | }; | 114 | }; |
104 | 115 | ||
105 | 116 | ||
@@ -198,7 +209,7 @@ struct InboundMessage | |||
198 | /** | 209 | /** |
199 | * Latency estimate. | 210 | * Latency estimate. |
200 | */ | 211 | */ |
201 | struct GNUNET_TIME_RelativeNBO latency; | 212 | //struct GNUNET_TIME_RelativeNBO latency; |
202 | 213 | ||
203 | /** | 214 | /** |
204 | * Which peer sent the message? | 215 | * Which peer sent the message? |
@@ -208,7 +219,7 @@ struct InboundMessage | |||
208 | /** | 219 | /** |
209 | * Distance metric. | 220 | * Distance metric. |
210 | */ | 221 | */ |
211 | uint32_t distance; | 222 | //uint32_t distance; |
212 | 223 | ||
213 | /** | 224 | /** |
214 | * First of the ATS information blocks (we must have at least | 225 | * First of the ATS information blocks (we must have at least |