aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_transport_service.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-11-06 23:39:48 +0000
committerChristian Grothoff <christian@grothoff.org>2015-11-06 23:39:48 +0000
commit9372cb529f88dd9e31bb51752601c91421651860 (patch)
treecea61fb70509c5acfc1d31c52fc2297279710582 /src/include/gnunet_transport_service.h
parent17bca33cca3c06668aa07c2750000a40a229c4a3 (diff)
downloadgnunet-9372cb529f88dd9e31bb51752601c91421651860.tar.gz
gnunet-9372cb529f88dd9e31bb51752601c91421651860.zip
removing definitively dead try_connect-related logic (#3675)
Diffstat (limited to 'src/include/gnunet_transport_service.h')
-rw-r--r--src/include/gnunet_transport_service.h49
1 files changed, 0 insertions, 49 deletions
diff --git a/src/include/gnunet_transport_service.h b/src/include/gnunet_transport_service.h
index c2f5798ad..8a20c52a7 100644
--- a/src/include/gnunet_transport_service.h
+++ b/src/include/gnunet_transport_service.h
@@ -160,55 +160,6 @@ void
160GNUNET_TRANSPORT_disconnect (struct GNUNET_TRANSPORT_Handle *handle); 160GNUNET_TRANSPORT_disconnect (struct GNUNET_TRANSPORT_Handle *handle);
161 161
162 162
163/* ************************* Connections *********************** */
164
165/**
166 * Opaque handle for a transmission-ready request.
167 */
168struct GNUNET_TRANSPORT_TryConnectHandle;
169
170/**
171 * Function to call with result of the try connect request.
172 *
173 * @param cls closure
174 * @param result #GNUNET_OK if message was transmitted to transport service
175 * #GNUNET_SYSERR if message was not transmitted to transport service
176 */
177typedef void
178(*GNUNET_TRANSPORT_TryConnectCallback) (void *cls,
179 int result);
180
181
182/**
183 * Ask the transport service to establish a connection to
184 * the given peer.
185 *
186 * @param handle connection to transport service
187 * @param target who we should try to connect to
188 * @param cb callback to be called when request was transmitted to transport
189 * service
190 * @param cb_cls closure for the callback @a cb
191 * @return a `struct GNUNET_TRANSPORT_TryConnectHandle` handle or
192 * NULL on failure (@a cb will not be called)
193 * @deprecated
194 */
195struct GNUNET_TRANSPORT_TryConnectHandle *
196GNUNET_TRANSPORT_try_connect (struct GNUNET_TRANSPORT_Handle *handle,
197 const struct GNUNET_PeerIdentity *target,
198 GNUNET_TRANSPORT_TryConnectCallback cb,
199 void *cb_cls);
200
201
202/**
203 * Cancel the request to transport to try a connect
204 * Callback will not be called
205 *
206 * @param tch handle to cancel
207 */
208void
209GNUNET_TRANSPORT_try_connect_cancel (struct GNUNET_TRANSPORT_TryConnectHandle *tch);
210
211
212/* ************************* Sending *************************** */ 163/* ************************* Sending *************************** */
213 164
214/** 165/**