GNUnet 0.22.2
GNUNET_SCHEDULER_TaskContext Struct Reference

Context information passed to each scheduler task. More...

#include <gnunet_scheduler_lib.h>

Collaboration diagram for GNUNET_SCHEDULER_TaskContext:
[legend]

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_FdInfofds
 Array of length fds_len with information about ready FDs. More...
 
const struct GNUNET_NETWORK_FDSetread_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_FDSetwrite_ready
 Set of file descriptors ready for writing; note that additional bits may be set that were not in the original request. More...
 

Detailed Description

Context information passed to each scheduler task.

Definition at line 181 of file gnunet_scheduler_lib.h.

Field Documentation

◆ reason

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().

◆ fds_len

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().

◆ fds

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().

◆ read_ready

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.

Deprecated:

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().

◆ write_ready

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.

Deprecated:

Definition at line 213 of file gnunet_scheduler_lib.h.

Referenced by do_read(), do_udp_read(), GNUNET_SCHEDULER_do_work(), and tcp_send().


The documentation for this struct was generated from the following file: