BRL-CAD
pkg_conn Struct Reference

#include <pkg.h>

Collaboration diagram for pkg_conn:
[legend]

Data Fields

int pkc_fd
 TCP 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 79 of file pkg.h.

Field Documentation

int pkc_fd

TCP connection fd.

Definition at line 80 of file pkg.h.

Referenced by new_client(), pkg_2send(), pkg_close(), pkg_flush(), pkg_send(), pkg_suckin(), and rem_open().

const struct pkg_switch* pkc_switch

Array of message handlers.

Definition at line 81 of file pkg.h.

Referenced by run_client().

pkg_errlog pkc_errlog

Error message logger.

Definition at line 82 of file pkg.h.

Referenced by pkg_2send(), pkg_bwaitfor(), pkg_close(), pkg_flush(), pkg_send(), pkg_suckin(), and pkg_waitfor().

struct pkg_header pkc_hdr

hdr of cur msg

Definition at line 83 of file pkg.h.

size_t pkc_len

pkg_len, in host order

Definition at line 84 of file pkg.h.

Referenced by fbs_rfbwmap(), pkg_bwaitfor(), and pkg_waitfor().

unsigned short pkc_type
void* pkc_user_data

User defined pointer to data for the current pkg_type.

Definition at line 86 of file pkg.h.

char pkc_stream[PKG_STREAMLEN]

output stream

Definition at line 88 of file pkg.h.

Referenced by pkg_flush(), and pkg_stream().

unsigned int pkc_magic

for validating pointers

Definition at line 89 of file pkg.h.

Referenced by pkg_close().

int pkc_strpos

index into stream buffer

Definition at line 90 of file pkg.h.

Referenced by pkg_2send(), pkg_close(), pkg_flush(), pkg_send(), and pkg_stream().

char* pkc_inbuf

input stream buffer

Definition at line 92 of file pkg.h.

Referenced by pkg_close(), pkg_suckin(), and run_client().

int pkc_incur

current pos in inbuf

Definition at line 93 of file pkg.h.

Referenced by pkg_process(), and pkg_suckin().

int pkc_inend

first unused pos in inbuf

Definition at line 94 of file pkg.h.

Referenced by pkg_process(), and pkg_suckin().

int pkc_inlen

length of pkc_inbuf

Definition at line 95 of file pkg.h.

Referenced by pkg_close(), and pkg_suckin().

int pkc_left

bytes pkg_get expects

Definition at line 97 of file pkg.h.

Referenced by pkg_block(), pkg_bwaitfor(), pkg_process(), and pkg_waitfor().

char* pkc_buf

start of dynamic buf

Definition at line 99 of file pkg.h.

Referenced by pkg_bwaitfor(), pkg_close(), and pkg_waitfor().

char* pkc_curpos

current position in pkg_buf

Definition at line 100 of file pkg.h.

Referenced by pkg_block(), pkg_bwaitfor(), pkg_process(), and pkg_waitfor().

void* pkc_server_data

used to hold server data for callbacks

Definition at line 101 of file pkg.h.


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