GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Client connected, transmitting\n");
GNUNET_assert (size >= sizeof (struct GNUNET_MessageHeader));
msg->type = htons (MY_TYPE);
- msg->size = htons (sizeof (msg));
+ msg->size = htons (sizeof (struct GNUNET_MessageHeader));
GNUNET_SCHEDULER_add_continuation (sched,
GNUNET_YES,
&end_it,
static void
recv_cb (void *cls,
- struct GNUNET_SERVER_Handle *server,
struct GNUNET_SERVER_Client *client,
const struct GNUNET_MessageHeader *message)
{