const struct GNUNET_MESH_MessageHandler *handlers,
const GNUNET_MESH_ApplicationType *stypes);
-/**
- * Get the peer on the other side of this tunnel if it is just one. Return NULL otherwise
- *
- * @deprecated
- * @param tunnel the tunnel
- * @return the peer or NULL
- */
-const struct GNUNET_PeerIdentity*
-GNUNET_MESH_get_peer (const struct GNUNET_MESH_Tunnel* tunnel);
-
/**
* Disconnect from the mesh service.
* @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)
- * @return NULL on error (handler will not be called), otherwise handle for cancellation
*/
-struct GNUNET_MESH_Tunnel *
+void
GNUNET_MESH_peer_request_connect_by_type (struct GNUNET_MESH_Tunnel *tunnel,
struct GNUNET_TIME_Relative timeout,
GNUNET_MESH_ApplicationType app_type);