pkg_conn Struct Reference
[Libpkg]

#include <pkg.h>

Collaboration diagram for pkg_conn:

Collaboration graph
[legend]

Public Member Functions

void pkc_errlog PKG_ARGS ((char *msg))
 Error message logger.

Data Fields

int pkc_fd
 TCP connection fd.
const struct pkg_switchpkc_switch
 Array of message handlers.
pkg_header pkc_hdr
 hdr of cur msg
long pkc_len
 pkg_len, in host order
unsigned short pkc_type
 pkg_type, in host order
char pkc_stream [PKG_STREAMLEN]
 output stream
int pkc_magic
 for validating pointers
int pkc_strpos
 index into stream buffer
char * pkc_inbuf
 input stream buffer
int pkc_incur
 current pos in inbuf
int pkc_inend
 first unused pos in inbuf
int pkc_inlen
 length of pkc_inbuf
int pkc_left
 # bytes pkg_get expects
char * pkc_buf
 start of dynamic buf
char * pkc_curpos
 current position in pkg_buf

Detailed Description

Definition at line 98 of file pkg.h.


Member Function Documentation

void pkc_errlog PKG_ARGS (char *msg)   ) 
 

Error message logger.


Field Documentation

int pkc_fd
 

TCP connection fd.

Definition at line 99 of file pkg.h.

const struct pkg_switch* pkc_switch
 

Array of message handlers.

Definition at line 100 of file pkg.h.

struct pkg_header pkc_hdr
 

hdr of cur msg

Definition at line 102 of file pkg.h.

long pkc_len
 

pkg_len, in host order

Definition at line 103 of file pkg.h.

unsigned short pkc_type
 

pkg_type, in host order

Definition at line 104 of file pkg.h.

char pkc_stream[PKG_STREAMLEN]
 

output stream

Definition at line 106 of file pkg.h.

int pkc_magic
 

for validating pointers

Definition at line 107 of file pkg.h.

int pkc_strpos
 

index into stream buffer

Definition at line 108 of file pkg.h.

char* pkc_inbuf
 

input stream buffer

Definition at line 110 of file pkg.h.

int pkc_incur
 

current pos in inbuf

Definition at line 111 of file pkg.h.

int pkc_inend
 

first unused pos in inbuf

Definition at line 112 of file pkg.h.

int pkc_inlen
 

length of pkc_inbuf

Definition at line 113 of file pkg.h.

int pkc_left
 

# bytes pkg_get expects

Definition at line 115 of file pkg.h.

char* pkc_buf
 

start of dynamic buf

Definition at line 117 of file pkg.h.

char* pkc_curpos
 

current position in pkg_buf

Definition at line 118 of file pkg.h.


The documentation for this struct was generated from the following file:
Generated on Mon Sep 18 01:25:14 2006 for BRL-CAD by  doxygen 1.4.6