gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r32816 - gnunet/src/include


From: gnunet
Subject: [GNUnet-SVN] r32816 - gnunet/src/include
Date: Thu, 27 Mar 2014 17:51:50 +0100

Author: wachs
Date: 2014-03-27 17:51:50 +0100 (Thu, 27 Mar 2014)
New Revision: 32816

Modified:
   gnunet/src/include/gnunet_transport_service.h
Log:
API header with disconnect call


Modified: gnunet/src/include/gnunet_transport_service.h
===================================================================
--- gnunet/src/include/gnunet_transport_service.h       2014-03-27 16:51:32 UTC 
(rev 32815)
+++ gnunet/src/include/gnunet_transport_service.h       2014-03-27 16:51:50 UTC 
(rev 32816)
@@ -129,7 +129,7 @@
   GNUNET_TRANSPORT_PS_CONNECT_RECV_ATS,
 
   /**
-   * CONNECT request from other peer was SESSION_ACK'ed, waiting for
+   * CONNECT request from other peer was CONNECT_ACK'ed, waiting for
    * SESSION_ACK.
    */
   GNUNET_TRANSPORT_PS_CONNECT_RECV_ACK,
@@ -461,6 +461,35 @@
 
 
 /**
+ * Ask the transport service to establish a disconnect from
+ * the given peer.
+ *
+ * @param handle connection to transport service
+ * @param target who we should try to disconnect from
+ * @param cb callback to be called when request was transmitted to transport
+ *         service
+ * @param cb_cls closure for the callback @a cb
+ * @return a `struct GNUNET_TRANSPORT_TryConnectHandle` handle or
+ *         NULL on failure (@a cb will not be called)
+ */
+struct GNUNET_TRANSPORT_TryConnectHandle *
+GNUNET_TRANSPORT_try_disconnect (struct GNUNET_TRANSPORT_Handle *handle,
+                              const struct GNUNET_PeerIdentity *target,
+                              GNUNET_TRANSPORT_TryConnectCallback cb,
+                              void *cb_cls);
+
+
+/**
+ * Cancel the request to transport to try a disconnect
+ * Callback will not be called
+ *
+ * @param tch GNUNET_TRANSPORT_TryConnectHandle handle to cancel
+ */
+void
+GNUNET_TRANSPORT_try_disconnect_cancel (struct 
GNUNET_TRANSPORT_TryConnectHandle *tch);
+
+
+/**
  * Opaque handle for a transmission-ready request.
  */
 struct GNUNET_TRANSPORT_TransmitHandle;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]