- * @param h mesh handle
- * @param timeout how long to try to establish a connection
- * @param app_type application type that must be supported by the peer (MESH should
- * discover peer in proximity handling this type)
- * @param connect_handler function to call on successful connect (or timeout);
- * will be called for EACH of the peers in the list and
- * once at the end with 'NULL' on timeout or once we've connected
- * to each of the peers in the list
- * @param disconnect_handler function called if a peer drops out of the tunnel;
- * the mesh will NOT try to add it back automatically
- * @param handler_cls closure for handler
- * @return NULL on error (handler will not be called), otherwise handle for cancellation
- */
-struct GNUNET_MESH_Tunnel *GNUNET_MESH_peer_request_connect_by_type (struct
- GNUNET_MESH_Handle
- *h,
- struct
- GNUNET_TIME_Relative
- timeout,
- GNUNET_MESH_ApplicationType
- app_type,
- GNUNET_MESH_TunnelConnectHandler
- connect_handler,
- GNUNET_MESH_TunnelDisconnectHandler
- disconnect_handler,
- void
- *handler_cls);
-
-
-/**
- * Cancel a pending request to connect to a particular peer. Destroys the
- * tunnel.
- *
- * @param req request handle that was returned for the original request
+ * @param tunnel handle to existing tunnel
+ * @param app_type application type that must be supported by the peer
+ * (MESH should discover peer in proximity handling this type)