Electroneum
tube Struct Reference

#include <tube.h>

Collaboration diagram for tube:

Public Attributes

int sr
 
int sw
 
struct comm_pointlisten_com
 
tube_callback_typelisten_cb
 
void * listen_arg
 
size_t cmd_read
 
uint32_t cmd_len
 
uint8_tcmd_msg
 
struct comm_pointres_com
 
size_t res_write
 
struct tube_res_listres_list
 
struct tube_res_listres_last
 

Detailed Description

A pipe

Definition at line 63 of file tube.h.

Member Data Documentation

◆ cmd_len

uint32_t tube::cmd_len

size of current read command, may be partially read

Definition at line 79 of file tube.h.

◆ cmd_msg

uint8_t* tube::cmd_msg

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

Definition at line 81 of file tube.h.

◆ cmd_read

size_t tube::cmd_read

are we currently reading a command, 0 if not, else bytecount

Definition at line 77 of file tube.h.

◆ listen_arg

void* tube::listen_arg

listen callback user arg

Definition at line 75 of file tube.h.

◆ listen_cb

tube_callback_type* tube::listen_cb

listen callback

Definition at line 73 of file tube.h.

◆ listen_com

struct comm_point* tube::listen_com

listen commpoint

Definition at line 71 of file tube.h.

◆ res_com

struct comm_point* tube::res_com

background write queue, commpoint to write results back

Definition at line 84 of file tube.h.

◆ res_last

struct tube_res_list* tube::res_last

last in list

Definition at line 91 of file tube.h.

◆ res_list

struct tube_res_list* tube::res_list

list of outstanding results to be written back

Definition at line 89 of file tube.h.

◆ res_write

size_t tube::res_write

are we currently writing a result, 0 if not, else bytecount into the res_list first entry.

Definition at line 87 of file tube.h.

◆ sr

int tube::sr

pipe end to read from

Definition at line 66 of file tube.h.

◆ sw

int tube::sw

pipe end to write on

Definition at line 68 of file tube.h.


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