else if (GNUNET_YES == session->expecting_welcome)
{
/* Session is expecting WELCOME message */
+ void *vaddr;
+ size_t alen;
+ GNUNET_SERVER_client_get_address (client, &vaddr, &alen);
+ GNUNET_log_from (GNUNET_ERROR_TYPE_ERROR, "tcp",
+ "Received unexpected %u bytes of type %u from `%s'\n",
+ (unsigned int) ntohs (message->size),
+ (unsigned int) ntohs (message->type),
+ GNUNET_a2s(vaddr, alen));
GNUNET_break_op (0);
GNUNET_SERVER_receive_done (client, GNUNET_SYSERR);
return;
client = GNUNET_CLIENT_connect ("transport", cfg);
if (client == NULL)
return NULL;
-#if DEBUG_TRANSPORT
- GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "GNUNET_TRANSPORT_address_to_string\n");
-#endif
msg = GNUNET_malloc (len);
msg->header.size = htons (len);
msg->header.type = htons (GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_TO_STRING);