summaryrefslogtreecommitdiff
path: root/src/core/core.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-01-21 14:06:06 +0000
committerChristian Grothoff <christian@grothoff.org>2010-01-21 14:06:06 +0000
commit87b254030acd37b6714565c5ac2e803da743d777 (patch)
treec542002dffca21eeb335b278d377fa22bef33cf7 /src/core/core.h
parentc13dfb403b26b07486953500103bccf9132654d6 (diff)
downloadgnunet-87b254030acd37b6714565c5ac2e803da743d777.tar.gz
gnunet-87b254030acd37b6714565c5ac2e803da743d777.zip
stuff
Diffstat (limited to 'src/core/core.h')
-rw-r--r--src/core/core.h55
1 files changed, 42 insertions, 13 deletions
diff --git a/src/core/core.h b/src/core/core.h
index 30130b84b..20c3ddc4b 100644
--- a/src/core/core.h
+++ b/src/core/core.h
@@ -112,6 +112,36 @@ struct ConnectNotifyMessage
112 struct GNUNET_MessageHeader header; 112 struct GNUNET_MessageHeader header;
113 113
114 /** 114 /**
115 * Distance to the peer.
116 */
117 uint32_t distance GNUNET_PACKED;
118
119 /**
120 * Currently observed latency.
121 */
122 struct GNUNET_TIME_RelativeNBO latency;
123
124 /**
125 * Identity of the connecting peer.
126 */
127 struct GNUNET_PeerIdentity peer;
128
129};
130
131
132
133/**
134 * Message sent by the service to clients to notify them
135 * about a peer disconnecting.
136 */
137struct DisconnectNotifyMessage
138{
139 /**
140 * Header with type GNUNET_MESSAGE_TYPE_CORE_NOTIFY_DISCONNECT.
141 */
142 struct GNUNET_MessageHeader header;
143
144 /**
115 * Always zero. 145 * Always zero.
116 */ 146 */
117 uint32_t reserved GNUNET_PACKED; 147 uint32_t reserved GNUNET_PACKED;
@@ -143,9 +173,14 @@ struct NotifyTrafficMessage
143 struct GNUNET_MessageHeader header; 173 struct GNUNET_MessageHeader header;
144 174
145 /** 175 /**
146 * Always zero. 176 * Distance to the peer.
147 */ 177 */
148 uint32_t reserved GNUNET_PACKED; 178 uint32_t distance GNUNET_PACKED;
179
180 /**
181 * Currently observed latency.
182 */
183 struct GNUNET_TIME_RelativeNBO latency;
149 184
150 /** 185 /**
151 * Identity of the receiver or sender. 186 * Identity of the receiver or sender.
@@ -230,12 +265,6 @@ struct ConfigurationInfoMessage
230 uint32_t bpm_out GNUNET_PACKED; 265 uint32_t bpm_out GNUNET_PACKED;
231 266
232 /** 267 /**
233 * Latest transport latency estimate for the peer.
234 * FOREVER if we have been disconnected.
235 */
236 struct GNUNET_TIME_RelativeNBO latency;
237
238 /**
239 * Current traffic preference for the peer. 268 * Current traffic preference for the peer.
240 * 0 if we have been disconnected. 269 * 0 if we have been disconnected.
241 */ 270 */
@@ -280,11 +309,11 @@ struct SendMessage
280 309
281 310
282/** 311/**
283 * Client asking core to transmit a particular message to a particular 312 * Client asking core to connect to a particular target. There is no
284 * target. There is no response from the core to this type of request 313 * response from the core to this type of request (however, if an
285 * (however, if an actual connection is created or destroyed, be it 314 * actual connection is created or destroyed, be it because of this
286 * because of this type request or not, the core generally needs to 315 * type request or not, the core generally needs to notify the
287 * notify the clients). 316 * clients).
288 */ 317 */
289struct ConnectMessage 318struct ConnectMessage
290{ 319{