- send packet
authorBart Polot <bart@net.in.tum.de>
Fri, 22 Jun 2012 14:04:33 +0000 (14:04 +0000)
committerBart Polot <bart@net.in.tum.de>
Fri, 22 Jun 2012 14:04:33 +0000 (14:04 +0000)
src/mesh/mesh_api.c

index ca4bff36fd444d14e1de06444e0e53f52a96d0a3..5860e5d4d7e535621f91aea830d5e8a18a194d65 100644 (file)
@@ -1392,7 +1392,9 @@ void
 GNUNET_MESH_announce_regex (struct GNUNET_MESH_Handle *h,
                             const char *regex)
 {
+  struct GNUNET_MessageHeader *msg;
   
+  msg = GNUNET_malloc
 }
 
 /**
@@ -1603,6 +1605,8 @@ GNUNET_MESH_peer_request_connect_by_string (struct GNUNET_MESH_Tunnel *tunnel,
   msg->header.type = htons (GNUNET_MESSAGE_TYPE_MESH_LOCAL_PEER_ADD_BY_STRING);
   msg->tunnel_id = htonl (tunnel->tid);
   memcpy(&msg[1], description, len);
+
+  send_packet (tunnel->mesh, &msg->header, tunnel);
 }