diff options
Diffstat (limited to 'src/transport/gnunet-service-transport_neighbours.h')
-rw-r--r-- | src/transport/gnunet-service-transport_neighbours.h | 86 |
1 files changed, 43 insertions, 43 deletions
diff --git a/src/transport/gnunet-service-transport_neighbours.h b/src/transport/gnunet-service-transport_neighbours.h index 92ad62be9..2ce149cf3 100644 --- a/src/transport/gnunet-service-transport_neighbours.h +++ b/src/transport/gnunet-service-transport_neighbours.h | |||
@@ -11,12 +11,12 @@ | |||
11 | WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | Affero General Public License for more details. | 13 | Affero General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU Affero General Public License | 15 | You should have received a copy of the GNU Affero General Public License |
16 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 | 17 | ||
18 | SPDX-License-Identifier: AGPL3.0-or-later | 18 | SPDX-License-Identifier: AGPL3.0-or-later |
19 | */ | 19 | */ |
20 | 20 | ||
21 | /** | 21 | /** |
22 | * @file transport/gnunet-service-transport_neighbours.h | 22 | * @file transport/gnunet-service-transport_neighbours.h |
@@ -40,14 +40,14 @@ | |||
40 | * @param max_fds maximum number of fds to use | 40 | * @param max_fds maximum number of fds to use |
41 | */ | 41 | */ |
42 | void | 42 | void |
43 | GST_neighbours_start (unsigned int max_fds); | 43 | GST_neighbours_start(unsigned int max_fds); |
44 | 44 | ||
45 | 45 | ||
46 | /** | 46 | /** |
47 | * Cleanup the neighbours subsystem. | 47 | * Cleanup the neighbours subsystem. |
48 | */ | 48 | */ |
49 | void | 49 | void |
50 | GST_neighbours_stop (void); | 50 | GST_neighbours_stop(void); |
51 | 51 | ||
52 | 52 | ||
53 | /** | 53 | /** |
@@ -57,7 +57,7 @@ GST_neighbours_stop (void); | |||
57 | * @return #GNUNET_YES if we are connected, #GNUNET_NO if not | 57 | * @return #GNUNET_YES if we are connected, #GNUNET_NO if not |
58 | */ | 58 | */ |
59 | int | 59 | int |
60 | GST_neighbours_test_connected (const struct GNUNET_PeerIdentity *target); | 60 | GST_neighbours_test_connected(const struct GNUNET_PeerIdentity *target); |
61 | 61 | ||
62 | 62 | ||
63 | /** | 63 | /** |
@@ -86,11 +86,11 @@ typedef void | |||
86 | * @param cont_cls closure for @a cont | 86 | * @param cont_cls closure for @a cont |
87 | */ | 87 | */ |
88 | void | 88 | void |
89 | GST_neighbours_send (const struct GNUNET_PeerIdentity *target, | 89 | GST_neighbours_send(const struct GNUNET_PeerIdentity *target, |
90 | const void *msg, | 90 | const void *msg, |
91 | size_t msg_size, | 91 | size_t msg_size, |
92 | struct GNUNET_TIME_Relative timeout, | 92 | struct GNUNET_TIME_Relative timeout, |
93 | GST_NeighbourSendContinuation cont, void *cont_cls); | 93 | GST_NeighbourSendContinuation cont, void *cont_cls); |
94 | 94 | ||
95 | 95 | ||
96 | /** | 96 | /** |
@@ -105,9 +105,9 @@ GST_neighbours_send (const struct GNUNET_PeerIdentity *target, | |||
105 | * @return how long to wait before reading more from this sender | 105 | * @return how long to wait before reading more from this sender |
106 | */ | 106 | */ |
107 | struct GNUNET_TIME_Relative | 107 | struct GNUNET_TIME_Relative |
108 | GST_neighbours_calculate_receive_delay (const struct GNUNET_PeerIdentity *sender, | 108 | GST_neighbours_calculate_receive_delay(const struct GNUNET_PeerIdentity *sender, |
109 | ssize_t size, | 109 | ssize_t size, |
110 | int *do_forward); | 110 | int *do_forward); |
111 | 111 | ||
112 | 112 | ||
113 | /** | 113 | /** |
@@ -118,8 +118,8 @@ GST_neighbours_calculate_receive_delay (const struct GNUNET_PeerIdentity *sender | |||
118 | * @param m the keep alive message containing the nonce to respond to | 118 | * @param m the keep alive message containing the nonce to respond to |
119 | */ | 119 | */ |
120 | void | 120 | void |
121 | GST_neighbours_keepalive (const struct GNUNET_PeerIdentity *neighbour, | 121 | GST_neighbours_keepalive(const struct GNUNET_PeerIdentity *neighbour, |
122 | const struct GNUNET_MessageHeader *m); | 122 | const struct GNUNET_MessageHeader *m); |
123 | 123 | ||
124 | 124 | ||
125 | /** | 125 | /** |
@@ -131,8 +131,8 @@ GST_neighbours_keepalive (const struct GNUNET_PeerIdentity *neighbour, | |||
131 | * @param m the message containing the keep alive response | 131 | * @param m the message containing the keep alive response |
132 | */ | 132 | */ |
133 | void | 133 | void |
134 | GST_neighbours_keepalive_response (const struct GNUNET_PeerIdentity *neighbour, | 134 | GST_neighbours_keepalive_response(const struct GNUNET_PeerIdentity *neighbour, |
135 | const struct GNUNET_MessageHeader *m); | 135 | const struct GNUNET_MessageHeader *m); |
136 | 136 | ||
137 | 137 | ||
138 | /** | 138 | /** |
@@ -141,7 +141,7 @@ GST_neighbours_keepalive_response (const struct GNUNET_PeerIdentity *neighbour, | |||
141 | * @param target peer to disconnect from | 141 | * @param target peer to disconnect from |
142 | */ | 142 | */ |
143 | void | 143 | void |
144 | GST_neighbours_force_disconnect (const struct GNUNET_PeerIdentity *target); | 144 | GST_neighbours_force_disconnect(const struct GNUNET_PeerIdentity *target); |
145 | 145 | ||
146 | 146 | ||
147 | /** | 147 | /** |
@@ -172,7 +172,7 @@ typedef void | |||
172 | * @param cb_cls closure for @a cb | 172 | * @param cb_cls closure for @a cb |
173 | */ | 173 | */ |
174 | void | 174 | void |
175 | GST_neighbours_iterate (GST_NeighbourIterator cb, void *cb_cls); | 175 | GST_neighbours_iterate(GST_NeighbourIterator cb, void *cb_cls); |
176 | 176 | ||
177 | 177 | ||
178 | /** | 178 | /** |
@@ -184,8 +184,8 @@ GST_neighbours_iterate (GST_NeighbourIterator cb, void *cb_cls); | |||
184 | * this session was not in use | 184 | * this session was not in use |
185 | */ | 185 | */ |
186 | int | 186 | int |
187 | GST_neighbours_session_terminated (const struct GNUNET_PeerIdentity *peer, | 187 | GST_neighbours_session_terminated(const struct GNUNET_PeerIdentity *peer, |
188 | struct GNUNET_ATS_Session *session); | 188 | struct GNUNET_ATS_Session *session); |
189 | 189 | ||
190 | 190 | ||
191 | /** | 191 | /** |
@@ -197,8 +197,8 @@ GST_neighbours_session_terminated (const struct GNUNET_PeerIdentity *peer, | |||
197 | * @param message the message we received (really only the size is used) | 197 | * @param message the message we received (really only the size is used) |
198 | */ | 198 | */ |
199 | void | 199 | void |
200 | GST_neighbours_notify_data_recv (const struct GNUNET_HELLO_Address *address, | 200 | GST_neighbours_notify_data_recv(const struct GNUNET_HELLO_Address *address, |
201 | const struct GNUNET_MessageHeader *message); | 201 | const struct GNUNET_MessageHeader *message); |
202 | 202 | ||
203 | 203 | ||
204 | /** | 204 | /** |
@@ -211,9 +211,9 @@ GST_neighbours_notify_data_recv (const struct GNUNET_HELLO_Address *address, | |||
211 | * @param message the message we sent (really only the size is used) | 211 | * @param message the message we sent (really only the size is used) |
212 | */ | 212 | */ |
213 | void | 213 | void |
214 | GST_neighbours_notify_data_sent (const struct GNUNET_HELLO_Address *address, | 214 | GST_neighbours_notify_data_sent(const struct GNUNET_HELLO_Address *address, |
215 | struct GNUNET_ATS_Session *session, | 215 | struct GNUNET_ATS_Session *session, |
216 | size_t size); | 216 | size_t size); |
217 | 217 | ||
218 | 218 | ||
219 | /** | 219 | /** |
@@ -226,10 +226,10 @@ GST_neighbours_notify_data_sent (const struct GNUNET_HELLO_Address *address, | |||
226 | * @param bandwidth_out outbound quota to be used when connection is up | 226 | * @param bandwidth_out outbound quota to be used when connection is up |
227 | */ | 227 | */ |
228 | void | 228 | void |
229 | GST_neighbours_switch_to_address (const struct GNUNET_HELLO_Address *address, | 229 | GST_neighbours_switch_to_address(const struct GNUNET_HELLO_Address *address, |
230 | struct GNUNET_ATS_Session *session, | 230 | struct GNUNET_ATS_Session *session, |
231 | struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in, | 231 | struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in, |
232 | struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out); | 232 | struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out); |
233 | 233 | ||
234 | 234 | ||
235 | /** | 235 | /** |
@@ -241,8 +241,8 @@ GST_neighbours_switch_to_address (const struct GNUNET_HELLO_Address *address, | |||
241 | * @return #GNUNET_OK if the message was fine, #GNUNET_SYSERR on serious error | 241 | * @return #GNUNET_OK if the message was fine, #GNUNET_SYSERR on serious error |
242 | */ | 242 | */ |
243 | int | 243 | int |
244 | GST_neighbours_handle_session_syn (const struct GNUNET_MessageHeader *message, | 244 | GST_neighbours_handle_session_syn(const struct GNUNET_MessageHeader *message, |
245 | const struct GNUNET_PeerIdentity *peer); | 245 | const struct GNUNET_PeerIdentity *peer); |
246 | 246 | ||
247 | 247 | ||
248 | /** | 248 | /** |
@@ -255,9 +255,9 @@ GST_neighbours_handle_session_syn (const struct GNUNET_MessageHeader *message, | |||
255 | * @return #GNUNET_OK if the message was fine, #GNUNET_SYSERR on serious error | 255 | * @return #GNUNET_OK if the message was fine, #GNUNET_SYSERR on serious error |
256 | */ | 256 | */ |
257 | int | 257 | int |
258 | GST_neighbours_handle_session_syn_ack (const struct GNUNET_MessageHeader *message, | 258 | GST_neighbours_handle_session_syn_ack(const struct GNUNET_MessageHeader *message, |
259 | const struct GNUNET_HELLO_Address *address, | 259 | const struct GNUNET_HELLO_Address *address, |
260 | struct GNUNET_ATS_Session *session); | 260 | struct GNUNET_ATS_Session *session); |
261 | 261 | ||
262 | 262 | ||
263 | /** | 263 | /** |
@@ -271,9 +271,9 @@ GST_neighbours_handle_session_syn_ack (const struct GNUNET_MessageHeader *messag | |||
271 | * @return #GNUNET_OK if the message was fine, #GNUNET_SYSERR on serious error | 271 | * @return #GNUNET_OK if the message was fine, #GNUNET_SYSERR on serious error |
272 | */ | 272 | */ |
273 | int | 273 | int |
274 | GST_neighbours_handle_session_ack (const struct GNUNET_MessageHeader *message, | 274 | GST_neighbours_handle_session_ack(const struct GNUNET_MessageHeader *message, |
275 | const struct GNUNET_HELLO_Address *address, | 275 | const struct GNUNET_HELLO_Address *address, |
276 | struct GNUNET_ATS_Session *session); | 276 | struct GNUNET_ATS_Session *session); |
277 | 277 | ||
278 | 278 | ||
279 | /** | 279 | /** |
@@ -283,7 +283,7 @@ GST_neighbours_handle_session_ack (const struct GNUNET_MessageHeader *message, | |||
283 | * @return address currently used | 283 | * @return address currently used |
284 | */ | 284 | */ |
285 | const struct GNUNET_HELLO_Address * | 285 | const struct GNUNET_HELLO_Address * |
286 | GST_neighbour_get_current_address (const struct GNUNET_PeerIdentity *peer); | 286 | GST_neighbour_get_current_address(const struct GNUNET_PeerIdentity *peer); |
287 | 287 | ||
288 | 288 | ||
289 | /** | 289 | /** |
@@ -294,8 +294,8 @@ GST_neighbour_get_current_address (const struct GNUNET_PeerIdentity *peer); | |||
294 | * @param msg the quota message | 294 | * @param msg the quota message |
295 | */ | 295 | */ |
296 | void | 296 | void |
297 | GST_neighbours_handle_quota_message (const struct GNUNET_PeerIdentity *peer, | 297 | GST_neighbours_handle_quota_message(const struct GNUNET_PeerIdentity *peer, |
298 | const struct GNUNET_MessageHeader *msg); | 298 | const struct GNUNET_MessageHeader *msg); |
299 | 299 | ||
300 | 300 | ||
301 | /** | 301 | /** |
@@ -306,8 +306,8 @@ GST_neighbours_handle_quota_message (const struct GNUNET_PeerIdentity *peer, | |||
306 | * @param msg the disconnect message | 306 | * @param msg the disconnect message |
307 | */ | 307 | */ |
308 | void | 308 | void |
309 | GST_neighbours_handle_disconnect_message (const struct GNUNET_PeerIdentity *peer, | 309 | GST_neighbours_handle_disconnect_message(const struct GNUNET_PeerIdentity *peer, |
310 | const struct GNUNET_MessageHeader *msg); | 310 | const struct GNUNET_MessageHeader *msg); |
311 | 311 | ||
312 | 312 | ||
313 | #endif | 313 | #endif |