- if (size == 0 || buf == NULL)
- {
- GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Could not send; got 0 buffer\n");
- return 0;
- }
- GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Sending!\n");
- struct GNUNET_MessageHeader *hdr = buf;
-
- hdr->size = htons (sizeof (struct GNUNET_MessageHeader));
- hdr->type = htons (GNUNET_MESSAGE_TYPE_DUMMY);
- return ntohs (hdr->size);