aboutsummaryrefslogtreecommitdiff
path: root/src/transport/gnunet-service-transport_neighbours.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/gnunet-service-transport_neighbours.h')
-rw-r--r--src/transport/gnunet-service-transport_neighbours.h53
1 files changed, 26 insertions, 27 deletions
diff --git a/src/transport/gnunet-service-transport_neighbours.h b/src/transport/gnunet-service-transport_neighbours.h
index c263c33d9..c0cee01a6 100644
--- a/src/transport/gnunet-service-transport_neighbours.h
+++ b/src/transport/gnunet-service-transport_neighbours.h
@@ -43,10 +43,8 @@
43 * @param connect_cb function to call if we connect to a peer 43 * @param connect_cb function to call if we connect to a peer
44 * @param disconnect_cb function to call if we disconnect from a peer 44 * @param disconnect_cb function to call if we disconnect from a peer
45 */ 45 */
46void 46void GST_neighbours_start (void *cls, GNUNET_TRANSPORT_NotifyConnect connect_cb,
47GST_neighbours_start (void *cls, 47 GNUNET_TRANSPORT_NotifyDisconnect disconnect_cb);
48 GNUNET_TRANSPORT_NotifyConnect connect_cb,
49 GNUNET_TRANSPORT_NotifyDisconnect disconnect_cb);
50 48
51 49
52/** 50/**
@@ -91,12 +89,10 @@ typedef void (*GST_NeighbourSendContinuation) (void *cls, int success);
91 * @param cont function to call when done 89 * @param cont function to call when done
92 * @param cont_cls closure for 'cont' 90 * @param cont_cls closure for 'cont'
93 */ 91 */
94void 92void GST_neighbours_send (const struct GNUNET_PeerIdentity *target,
95GST_neighbours_send (const struct GNUNET_PeerIdentity *target, 93 const void *msg, size_t msg_size,
96 const void *msg, 94 struct GNUNET_TIME_Relative timeout,
97 size_t msg_size, 95 GST_NeighbourSendContinuation cont, void *cont_cls);
98 struct GNUNET_TIME_Relative timeout,
99 GST_NeighbourSendContinuation cont, void *cont_cls);
100 96
101 97
102/** 98/**
@@ -110,9 +106,13 @@ GST_neighbours_send (const struct GNUNET_PeerIdentity *target,
110 * GNUNET_NO if the neighbour is not connected or violates the quota 106 * GNUNET_NO if the neighbour is not connected or violates the quota
111 * @return how long to wait before reading more from this sender 107 * @return how long to wait before reading more from this sender
112 */ 108 */
113struct GNUNET_TIME_Relative 109struct GNUNET_TIME_Relative GST_neighbours_calculate_receive_delay (const struct
114GST_neighbours_calculate_receive_delay (const struct GNUNET_PeerIdentity 110 GNUNET_PeerIdentity
115 *sender, ssize_t size, int *do_forward); 111 *sender,
112 ssize_t
113 size,
114 int
115 *do_forward);
116 116
117 117
118/** 118/**
@@ -130,9 +130,10 @@ void GST_neighbours_keepalive (const struct GNUNET_PeerIdentity *neighbour);
130 * @param neighbour identity of peer to change qutoa for 130 * @param neighbour identity of peer to change qutoa for
131 * @param quota new quota 131 * @param quota new quota
132 */ 132 */
133void 133void GST_neighbours_set_incoming_quota (const struct GNUNET_PeerIdentity
134GST_neighbours_set_incoming_quota (const struct GNUNET_PeerIdentity *neighbour, 134 *neighbour,
135 struct GNUNET_BANDWIDTH_Value32NBO quota); 135 struct GNUNET_BANDWIDTH_Value32NBO
136 quota);
136 137
137 138
138/** 139/**
@@ -174,9 +175,8 @@ void GST_neighbours_iterate (GST_NeighbourIterator cb, void *cb_cls);
174 * @param peer identity of the peer where the session died 175 * @param peer identity of the peer where the session died
175 * @param session session that is gone 176 * @param session session that is gone
176 */ 177 */
177void 178void GST_neighbours_session_terminated (const struct GNUNET_PeerIdentity *peer,
178GST_neighbours_session_terminated (const struct GNUNET_PeerIdentity *peer, 179 struct Session *session);
179 struct Session *session);
180 180
181 181
182/** 182/**
@@ -192,14 +192,13 @@ GST_neighbours_session_terminated (const struct GNUNET_PeerIdentity *peer,
192 * @param ats performance data 192 * @param ats performance data
193 * @param ats_count number of entries in ats (excluding 0-termination) 193 * @param ats_count number of entries in ats (excluding 0-termination)
194 */ 194 */
195void 195void GST_neighbours_switch_to_address (const struct GNUNET_PeerIdentity *peer,
196GST_neighbours_switch_to_address (const struct GNUNET_PeerIdentity *peer, 196 const char *plugin_name,
197 const char *plugin_name, 197 const void *address, size_t address_len,
198 const void *address, 198 struct Session *session,
199 size_t address_len, 199 const struct
200 struct Session *session, 200 GNUNET_TRANSPORT_ATS_Information *ats,
201 const struct GNUNET_TRANSPORT_ATS_Information 201 uint32_t ats_count);
202 *ats, uint32_t ats_count);
203 202
204 203
205#endif 204#endif