Context information passed to each scheduler task. More...
#include <gnunet_scheduler_lib.h>
Data Fields | |
enum GNUNET_SCHEDULER_Reason | reason |
Reason why the task is run now. More... | |
unsigned int | fds_len |
Length of the following array. More... | |
const struct GNUNET_SCHEDULER_FdInfo * | fds |
Array of length fds_len with information about ready FDs. More... | |
const struct GNUNET_NETWORK_FDSet * | read_ready |
Set of file descriptors ready for reading; note that additional bits may be set that were not in the original request. More... | |
const struct GNUNET_NETWORK_FDSet * | write_ready |
Set of file descriptors ready for writing; note that additional bits may be set that were not in the original request. More... | |
Context information passed to each scheduler task.
Definition at line 181 of file gnunet_scheduler_lib.h.
enum GNUNET_SCHEDULER_Reason GNUNET_SCHEDULER_TaskContext::reason |
Reason why the task is run now.
Definition at line 186 of file gnunet_scheduler_lib.h.
Referenced by connect_probe_continuation(), do_udp_read(), GNUNET_SCHEDULER_do_work(), maint_child_death(), read_dns4(), and read_dns6().
unsigned int GNUNET_SCHEDULER_TaskContext::fds_len |
Length of the following array.
Definition at line 191 of file gnunet_scheduler_lib.h.
Referenced by GNUNET_SCHEDULER_do_work().
const struct GNUNET_SCHEDULER_FdInfo* GNUNET_SCHEDULER_TaskContext::fds |
Array of length fds_len with information about ready FDs.
Note that we use the same format regardless of the internal event loop that was used. The given array should only contain information about file descriptors relevant to the current task.
Definition at line 199 of file gnunet_scheduler_lib.h.
Referenced by GNUNET_SCHEDULER_do_work().
const struct GNUNET_NETWORK_FDSet* GNUNET_SCHEDULER_TaskContext::read_ready |
Set of file descriptors ready for reading; note that additional bits may be set that were not in the original request.
Definition at line 206 of file gnunet_scheduler_lib.h.
Referenced by cmd_read(), do_read(), do_s5r_read(), do_udp_read(), GNUNET_SCHEDULER_do_work(), and read_response().
const struct GNUNET_NETWORK_FDSet* GNUNET_SCHEDULER_TaskContext::write_ready |
Set of file descriptors ready for writing; note that additional bits may be set that were not in the original request.
Definition at line 213 of file gnunet_scheduler_lib.h.
Referenced by do_read(), do_udp_read(), GNUNET_SCHEDULER_do_work(), and tcp_send().