kinetic-c  v0.12.0
Seagate Kinetic Protocol Client Library for C
Data Fields
listener Struct Reference

Receiver of responses. More...

#include <listener_internal_types.h>

Data Fields

struct busbus
 
int shutdown_notify_fd
 
int commit_pipe
 
int incoming_msg_pipe
 
bool is_idle
 
rx_info_t rx_info [(1024)]
 
rx_info_trx_info_freelist
 
uint16_t rx_info_in_use
 
uint16_t rx_info_max_used
 
listener_msg msgs [(32)]
 
listener_msgmsg_freelist
 
int16_t msgs_in_use
 
int64_t largest_seq_id_seen
 
size_t upstream_backpressure
 
uint16_t tracked_fds
 FDs currently tracked by listener. More...
 
uint16_t inactive_fds
 File descriptors that are inactive due to errors, but have not yet been explicitly removed/closed by the client. More...
 
struct pollfd fds [1000+1]
 Tracked file descriptors, for polling. More...
 
connection_infofd_info [1000]
 The connection info, corresponding to the the file descriptors tracked in l->fds. More...
 
bool error_occured
 Flag indicating post-poll handling is necessary. More...
 
size_t read_buf_size
 
uint8_t * read_buf
 

Detailed Description

Receiver of responses.

Definition at line 136 of file listener_internal_types.h.

Field Documentation

struct bus* listener::bus

Definition at line 137 of file listener_internal_types.h.

int listener::shutdown_notify_fd

Definition at line 144 of file listener_internal_types.h.

int listener::commit_pipe

Definition at line 147 of file listener_internal_types.h.

int listener::incoming_msg_pipe

Definition at line 148 of file listener_internal_types.h.

bool listener::is_idle

Definition at line 149 of file listener_internal_types.h.

rx_info_t listener::rx_info[(1024)]

Definition at line 151 of file listener_internal_types.h.

rx_info_t* listener::rx_info_freelist

Definition at line 152 of file listener_internal_types.h.

uint16_t listener::rx_info_in_use

Definition at line 153 of file listener_internal_types.h.

uint16_t listener::rx_info_max_used

Definition at line 154 of file listener_internal_types.h.

listener_msg listener::msgs[(32)]

Definition at line 156 of file listener_internal_types.h.

listener_msg* listener::msg_freelist

Definition at line 157 of file listener_internal_types.h.

int16_t listener::msgs_in_use

Definition at line 158 of file listener_internal_types.h.

int64_t listener::largest_seq_id_seen

Definition at line 159 of file listener_internal_types.h.

size_t listener::upstream_backpressure

Definition at line 161 of file listener_internal_types.h.

uint16_t listener::tracked_fds

FDs currently tracked by listener.

Definition at line 163 of file listener_internal_types.h.

uint16_t listener::inactive_fds

File descriptors that are inactive due to errors, but have not yet been explicitly removed/closed by the client.

Definition at line 166 of file listener_internal_types.h.

struct pollfd listener::fds[1000+1]

Tracked file descriptors, for polling.

fds[INCOMING_MSG_PIPE_ID (0)] is the incoming_msg_pipe, so the listener's poll is awakened by incoming commands. fds[1] through fds[l->tracked_fds - l->inactive_fds] are the file descriptors which should be polled, and the remaining ones (if any) have been moved to the end so poll() will not touch them.

Definition at line 175 of file listener_internal_types.h.

connection_info* listener::fd_info[1000]

The connection info, corresponding to the the file descriptors tracked in l->fds.

Unlike l->fds, these are not offset by one for the incoming message pipe, i.e. l->fd_info[3] correspons to l->fds[3 + INCOMING_MSG_PIPE].

Definition at line 180 of file listener_internal_types.h.

bool listener::error_occured

Flag indicating post-poll handling is necessary.

Definition at line 182 of file listener_internal_types.h.

size_t listener::read_buf_size

Definition at line 185 of file listener_internal_types.h.

uint8_t* listener::read_buf

Definition at line 186 of file listener_internal_types.h.


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