+void build_hello_message(struct GNUNET_MESH_Handle* handle, int num)
+{
+ handle->hello_message_size = sizeof(uint16_t) + /* For the number of types */
+ num * sizeof(uint16_t); /* For the types */
+
+ uint16_t *nums = GNUNET_malloc(handle->hello_message_size);
+ uint16_t *types = nums + 1;
+
+ *nums = num;
+
+ unsigned int i;
+ for(i = 0; i < num; i++)
+ types[i] = handle->handlers[i].type;
+
+ handle->hello_message = nums;
+}
+