- start test only after warmup
[oweals/gnunet.git] / src / mesh / gnunet-service-mesh_peer.h
index d5c189d534c1fc782ea0bd9960d9c198b94a5b7e..dd8bd2a5ed6a347112c925520a333d5640766860 100644 (file)
@@ -160,6 +160,17 @@ GMP_queue_add (struct MeshPeer *peer, void *cls, uint16_t type, size_t size,
 void
 GMP_queue_cancel (struct MeshPeer *peer, struct MeshConnection *c);
 
+/**
+ * Get the first message for a connection and unqueue it.
+ *
+ * @param peer Neighboring peer.
+ * @param c Connection.
+ *
+ * @return First message for this connection.
+ */
+struct GNUNET_MessageHeader *
+GMP_connection_pop (struct MeshPeer *peer, struct MeshConnection *c);
+
 void
 GMP_queue_unlock (struct MeshPeer *peer, struct MeshConnection *c);
 
@@ -334,9 +345,18 @@ GMP_set_hello (struct MeshPeer *peer, const struct GNUNET_HELLO_Message *hello);
  *
  * @return Hello message.
  */
-const struct GNUNET_HELLO_Message *
+struct GNUNET_HELLO_Message *
 GMP_get_hello (struct MeshPeer *peer);
 
+
+/**
+ * Try to connect to a peer on TRANSPORT level.
+ *
+ * @param peer Peer to whom to connect.
+ */
+void
+GMP_try_connect (struct MeshPeer *peer);
+
 /**
  * Count the number of known paths toward the peer.
  *