}
-int
+void
extract_handles (struct GNUNET_SCHEDULER_Task *t,
const struct GNUNET_NETWORK_FDSet *fdset,
const struct GNUNET_NETWORK_Handle ***ntarget,
const struct GNUNET_DISK_FileHandle **fhandles;
unsigned int nhandles_len, fhandles_len;
int sock;
- int ret;
nhandles = NULL;
fhandles = NULL;
nhandles_len = 0;
fhandles_len = 0;
- ret = GNUNET_OK;
for (sock = 0; sock != fdset->nsds; ++sock)
{
if (GNUNET_YES == GNUNET_NETWORK_fdset_test_native (fdset, sock))
}
else
{
- ret = GNUNET_SYSERR;
- // DEBUG
GNUNET_assert (0);
}
}
*ftarget = fhandles_len > 0 ? fhandles : NULL;
*extracted_nhandles = nhandles_len;
*extracted_fhandles = fhandles_len;
- return ret;
}
GNUNET_CONTAINER_DLL_insert (context->scheduled_head,
context->scheduled_tail,
scheduled);
- //if (0 != (GNUNET_SCHEDULER_ET_IN & scheduled->et))
- //{
- // GNUNET_CONTAINER_DLL_insert (context->scheduled_in_head,
- // context->scheduled_in_tail,
- // scheduled);
- //}
- //if (0 != (GNUNET_SCHEDULER_ET_OUT & scheduled->et))
- //{
- // GNUNET_CONTAINER_DLL_insert (context->scheduled_out_head,
- // context->scheduled_out_tail,
- // scheduled);
- //}
- //if (0 != (GNUNET_SCHEDULER_ET_HUP & scheduled->et) ||
- // 0 != (GNUNET_SCHEDULER_ET_ERR & scheduled->et) ||
- // 0 != (GNUNET_SCHEDULER_ET_PRI & scheduled->et) ||
- // 0 != (GNUNET_SCHEDULER_ET_NVAL & scheduled->et))
- //{
- // // FIXME: other event types not implemented yet
- // GNUNET_assert (0);
- //}
return GNUNET_OK;
}