use enum GNUNET_ATS_Network_Type instead of uint32_t where appropriate
[oweals/gnunet.git] / src / include / gnunet_transport_service.h
index ec777e4ee6178074d4aff744a5ba0d266210aa63..4b0735b10261b772bf8cd1c9c256b2df31e312bb 100644 (file)
@@ -198,6 +198,7 @@ GNUNET_TRANSPORT_try_connect (struct GNUNET_TRANSPORT_Handle *handle,
 void
 GNUNET_TRANSPORT_try_connect_cancel (struct GNUNET_TRANSPORT_TryConnectHandle *tch);
 
+
 /**
  * Opaque handle for a transmission-ready request.
  */
@@ -264,16 +265,15 @@ struct GNUNET_TRANSPORT_GetHelloHandle;
 
 
 /**
-  * Checks if a neighbour is connected
-  *
-  * @param handle connection to transport service
-  * @param peer the peer to check
-  * @return GNUNET_YES or GNUNET_NO
-  *
-  */
+ * Checks if a given peer is connected to us
+ *
+ * @param handle connection to transport service
+ * @param peer the peer to check
+ * @return #GNUNET_YES (connected) or #GNUNET_NO (disconnected)
+ */
 int
-GNUNET_TRANSPORT_check_neighbour_connected (struct GNUNET_TRANSPORT_Handle *handle,
-                                                               const struct GNUNET_PeerIdentity *peer);
+GNUNET_TRANSPORT_check_peer_connected (struct GNUNET_TRANSPORT_Handle *handle,
+                                            const struct GNUNET_PeerIdentity *peer);
 
 
 /**
@@ -304,11 +304,11 @@ GNUNET_TRANSPORT_check_neighbour_connected (struct GNUNET_TRANSPORT_Handle *hand
  */
 void
 GNUNET_TRANSPORT_set_traffic_metric (struct GNUNET_TRANSPORT_Handle *handle,
-                                                                                                                                               const struct GNUNET_PeerIdentity *peer,
-                                                                                                                                               int inbound,
-                                                                                                                                               int outbound,
-                                                                                                                                               const struct GNUNET_ATS_Information *ats,
-                                                                                                                                               size_t ats_count);
+                                    const struct GNUNET_PeerIdentity *peer,
+                                    int inbound,
+                                    int outbound,
+                                    const struct GNUNET_ATS_Information *ats,
+                                    size_t ats_count);
 
 
 /**
@@ -364,6 +364,7 @@ GNUNET_TRANSPORT_offer_hello (struct GNUNET_TRANSPORT_Handle *handle,
 void
 GNUNET_TRANSPORT_offer_hello_cancel (struct GNUNET_TRANSPORT_OfferHelloHandle *ohh);
 
+
 /**
  * Handle to cancel a pending address lookup.
  */