/*
This file is part of GNUnet.
- (C) 2009-2014 Christian Grothoff (and other contributing authors)
+ Copyright (C) 2009-2014 GNUnet e.V.
GNUnet is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
You should have received a copy of the GNU General Public License
along with GNUnet; see the file COPYING. If not, write to the
- Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- Boston, MA 02111-1307, USA.
+ Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301, USA.
*/
/**
* @file transport/transport_api_address_to_string.c
if (NULL == msg)
{
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "Disconnected from transport, address resolution failed\n");
alucb->cb (alucb->cb_cls,
NULL,
GNUNET_SYSERR);
{
/* expect more replies; as this is not the last
call, we must pass the empty string for the address */
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "Address resolution failed\n");
alucb->cb (alucb->cb_cls,
"",
GNUNET_NO);
}
client = GNUNET_CLIENT_connect ("transport", cfg);
if (NULL == client)
+ {
+ GNUNET_break (0);
return NULL;
+ }
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
- "Client %p tries to resolve for peer `%s'address len %u \n",
+ "Client %p tries to resolve for peer `%s' address plugin %s len %u\n",
client,
GNUNET_i2s (&address->peer),
- address->address_length);
+ address->transport_name,
+ (unsigned int) address->address_length);
msg = GNUNET_malloc (len);
msg->header.size = htons (len);