GNUnet  0.11.x
Data Fields
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 176 of file gnunet_scheduler_lib.h.

Field Documentation

◆ reason

enum GNUNET_SCHEDULER_Reason GNUNET_SCHEDULER_TaskContext::reason

◆ fds_len

unsigned int GNUNET_SCHEDULER_TaskContext::fds_len

Length of the following array.

Definition at line 186 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 194 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 201 of file gnunet_scheduler_lib.h.

Referenced by cmd_read(), do_read(), do_s5r_read(), do_udp_read(), GNUNET_SCHEDULER_do_work(), process_listen_socket(), read_response(), receive_ready(), udp_plugin_select_v4(), and udp_plugin_select_v6().

◆ 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 208 of file gnunet_scheduler_lib.h.

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


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