/**
* Type of HELLOs client cares about.
*/
- enum GNUNET_ATS_Network_Type nt;
+ enum GNUNET_TRANSPORT_AddressClass ac;
};
static void
reconnect (void *cls)
{
- GNUNET_MQ_hd_var_size (hello,
- GNUNET_MESSAGE_TYPE_HELLO,
- struct GNUNET_MessageHeader);
struct GNUNET_TRANSPORT_HelloGetHandle *ghh = cls;
struct GNUNET_MQ_MessageHandler handlers[] = {
- make_hello_handler (ghh),
+ GNUNET_MQ_hd_var_size (hello,
+ GNUNET_MESSAGE_TYPE_HELLO,
+ struct GNUNET_MessageHeader,
+ ghh),
GNUNET_MQ_handler_end ()
};
struct GNUNET_MQ_Envelope *env;
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Connecting to transport service.\n");
GNUNET_assert (NULL == ghh->mq);
- ghh->mq = GNUNET_CLIENT_connecT (ghh->cfg,
+ ghh->mq = GNUNET_CLIENT_connect (ghh->cfg,
"transport",
handlers,
&mq_error_handler,
* is never called synchronously.
*
* @param cfg configuration
- * @param nt which network type should the addresses from the HELLO belong to?
+ * @param ac which network type should the addresses from the HELLO belong to?
* @param rec function to call with the HELLO, sender will be our peer
* identity; message and sender will be NULL on timeout
* (handshake with transport service pending/failed).
*/
struct GNUNET_TRANSPORT_HelloGetHandle *
GNUNET_TRANSPORT_hello_get (const struct GNUNET_CONFIGURATION_Handle *cfg,
- enum GNUNET_ATS_Network_Type nt,
+ enum GNUNET_TRANSPORT_AddressClass ac,
GNUNET_TRANSPORT_HelloUpdateCallback rec,
void *rec_cls)
{
ghh->rec = rec;
ghh->rec_cls = rec_cls;
ghh->cfg = cfg;
- ghh->nt = nt;
+ ghh->ac = ac;
reconnect (ghh);
if (NULL == ghh->mq)
{