BRL-CAD
pkg_conn Struct Reference

#include <pkg.h>

Collaboration diagram for pkg_conn:
[legend]

Data Fields

int pkc_fd
 TCP connection fd. More...
 
int pkc_in_fd
 input connection fd More...
 
int pkc_out_fd
 output connection fd More...
 
const struct pkg_switchpkc_switch
 Array of message handlers. More...
 
pkg_errlog pkc_errlog
 Error message logger. More...
 
struct pkg_header pkc_hdr
 hdr of cur msg More...
 
size_t pkc_len
 pkg_len, in host order More...
 
unsigned short pkc_type
 pkg_type, in host order More...
 
void * pkc_user_data
 User defined pointer to data for the current pkg_type. More...
 
char pkc_stream [PKG_STREAMLEN]
 output stream More...
 
unsigned int pkc_magic
 for validating pointers More...
 
int pkc_strpos
 index into stream buffer More...
 
char * pkc_inbuf
 input stream buffer More...
 
int pkc_incur
 current pos in inbuf More...
 
int pkc_inend
 first unused pos in inbuf More...
 
int pkc_inlen
 length of pkc_inbuf More...
 
int pkc_left
 # bytes pkg_get expects More...
 
char * pkc_buf
 start of dynamic buf More...
 
char * pkc_curpos
 current position in pkg_buf More...
 
void * pkc_server_data
 used to hold server data for callbacks More...
 

Detailed Description

Definition at line 86 of file pkg.h.

Field Documentation

◆ pkc_fd

int pkc_fd

TCP connection fd.

Definition at line 87 of file pkg.h.

◆ pkc_in_fd

int pkc_in_fd

input connection fd

Definition at line 88 of file pkg.h.

◆ pkc_out_fd

int pkc_out_fd

output connection fd

Definition at line 89 of file pkg.h.

◆ pkc_switch

const struct pkg_switch* pkc_switch

Array of message handlers.

Definition at line 90 of file pkg.h.

◆ pkc_errlog

pkg_errlog pkc_errlog

Error message logger.

Definition at line 91 of file pkg.h.

◆ pkc_hdr

struct pkg_header pkc_hdr

hdr of cur msg

Definition at line 92 of file pkg.h.

◆ pkc_len

size_t pkc_len

pkg_len, in host order

Definition at line 93 of file pkg.h.

◆ pkc_type

unsigned short pkc_type

pkg_type, in host order

Definition at line 94 of file pkg.h.

◆ pkc_user_data

void* pkc_user_data

User defined pointer to data for the current pkg_type.

Definition at line 95 of file pkg.h.

◆ pkc_stream

char pkc_stream[PKG_STREAMLEN]

output stream

Definition at line 97 of file pkg.h.

◆ pkc_magic

unsigned int pkc_magic

for validating pointers

Definition at line 98 of file pkg.h.

◆ pkc_strpos

int pkc_strpos

index into stream buffer

Definition at line 99 of file pkg.h.

◆ pkc_inbuf

char* pkc_inbuf

input stream buffer

Definition at line 101 of file pkg.h.

◆ pkc_incur

int pkc_incur

current pos in inbuf

Definition at line 102 of file pkg.h.

◆ pkc_inend

int pkc_inend

first unused pos in inbuf

Definition at line 103 of file pkg.h.

◆ pkc_inlen

int pkc_inlen

length of pkc_inbuf

Definition at line 104 of file pkg.h.

◆ pkc_left

int pkc_left

# bytes pkg_get expects

Definition at line 106 of file pkg.h.

◆ pkc_buf

char* pkc_buf

start of dynamic buf

Definition at line 108 of file pkg.h.

◆ pkc_curpos

char* pkc_curpos

current position in pkg_buf

Definition at line 109 of file pkg.h.

◆ pkc_server_data

void* pkc_server_data

used to hold server data for callbacks

Definition at line 110 of file pkg.h.


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