aboutsummaryrefslogtreecommitdiff
path: root/src/dv/dv.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-03-15 08:49:10 +0000
committerChristian Grothoff <christian@grothoff.org>2013-03-15 08:49:10 +0000
commitd1c05be0514d7b0074a8df34b12a0acb6bae82d0 (patch)
tree154ea3eda6cc4f7ccd1aa7ac84bd4a29e180669d /src/dv/dv.h
parent44f07a618e64d94b03e3a1be7812a1721aa63902 (diff)
downloadgnunet-d1c05be0514d7b0074a8df34b12a0acb6bae82d0.tar.gz
gnunet-d1c05be0514d7b0074a8df34b12a0acb6bae82d0.zip
-nack support
Diffstat (limited to 'src/dv/dv.h')
-rw-r--r--src/dv/dv.h31
1 files changed, 29 insertions, 2 deletions
diff --git a/src/dv/dv.h b/src/dv/dv.h
index bcc586a0e..c0247218e 100644
--- a/src/dv/dv.h
+++ b/src/dv/dv.h
@@ -135,12 +135,13 @@ struct GNUNET_DV_SendMessage
135 135
136/** 136/**
137 * Message from service to DV plugin, saying that a 137 * Message from service to DV plugin, saying that a
138 * SEND request was handled. 138 * SEND request was handled.
139 */ 139 */
140struct GNUNET_DV_AckMessage 140struct GNUNET_DV_AckMessage
141{ 141{
142 /** 142 /**
143 * Type: GNUNET_MESSAGE_TYPE_DV_SEND_ACK 143 * Type: GNUNET_MESSAGE_TYPE_DV_SEND_ACK or
144 * GNUNET_MESSAGE_TYPE_DV_SEND_NACK.
144 */ 145 */
145 struct GNUNET_MessageHeader header; 146 struct GNUNET_MessageHeader header;
146 147
@@ -155,6 +156,32 @@ struct GNUNET_DV_AckMessage
155 struct GNUNET_PeerIdentity target; 156 struct GNUNET_PeerIdentity target;
156 157
157}; 158};
159
160
161/**
162 * Message from service to DV plugin, saying that our
163 * distance to another peer changed.
164 */
165struct GNUNET_DV_DistanceUpdateMessage
166{
167 /**
168 * Type: GNUNET_MESSAGE_TYPE_DV_DISTANCE_CHANGED.
169 */
170 struct GNUNET_MessageHeader header;
171
172 /**
173 * What is the new distance?
174 */
175 uint32_t distance GNUNET_PACKED;
176
177 /**
178 * The peer for which the distance changed.
179 */
180 struct GNUNET_PeerIdentity peer;
181
182};
183
184
158GNUNET_NETWORK_STRUCT_END 185GNUNET_NETWORK_STRUCT_END
159 186
160#endif 187#endif