unbound 0.1
tube Struct Reference

A pipe. More...

#include <tube.h>

Data Fields

int sr
 pipe end to read from
int sw
 pipe end to write on
struct comm_point * listen_com
 listen commpoint
tube_callback_type * listen_cb
 listen callback
void * listen_arg
 listen callback user arg
size_t cmd_read
 are we currently reading a command, 0 if not, else bytecount
uint32_t cmd_len
 size of current read command, may be partially read
uint8_t * cmd_msg
 the current read command content, malloced, can be partially read
struct comm_point * res_com
 background write queue, commpoint to write results back
size_t res_write
 are we currently writing a result, 0 if not, else bytecount into the res_list first entry.
struct tube_res_list * res_list
 list of outstanding results to be written back
struct tube_res_list * res_last
 last in list

Detailed Description

A pipe.

Field Documentation

◆ sr

◆ sw

int tube::sw

pipe end to write on

Referenced by tube_close_write(), tube_create(), tube_setup_bg_write(), and tube_write_msg().

◆ listen_com

struct comm_point* tube::listen_com

listen commpoint

Referenced by tube_remove_bg_listen(), tube_setup_bg_listen(), and ub_ctx_delete().

◆ listen_cb

tube_callback_type* tube::listen_cb

listen callback

Referenced by tube_setup_bg_listen().

◆ listen_arg

void* tube::listen_arg

listen callback user arg

Referenced by tube_setup_bg_listen().

◆ cmd_msg

uint8_t* tube::cmd_msg

the current read command content, malloced, can be partially read

Referenced by tube_remove_bg_listen().

◆ res_com

struct comm_point* tube::res_com

background write queue, commpoint to write results back

Referenced by tube_queue_item(), tube_remove_bg_write(), tube_setup_bg_write(), and ub_ctx_delete().

◆ res_list

struct tube_res_list* tube::res_list

list of outstanding results to be written back

Referenced by tube_queue_item(), and tube_remove_bg_write().

◆ res_last

struct tube_res_list* tube::res_last

last in list

Referenced by tube_queue_item(), and tube_remove_bg_write().


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