sexp_iowrap Struct Reference
[I/O routines]

#include <sexp.h>

Data Fields

int fd
char buf [BUFSIZ]
int cnt

Detailed Description

This structure is a wrapper around a standard I/O file descriptor and the parsing infrastructure (continuation and a buffer) required to parse off of it. This is used so that routines can hide the loops and details required to accumulate up data read off of the file descriptor and parse expressions individually out of it.

Field Documentation

char buf[BUFSIZ]

Buffer to read data into before parsing.

pcont_t* cc

Continuation used to parse off of the file descriptor.

int cnt

Byte count for last read. If it is -1, there was an error. Otherwise, it will be a value from 0 to BUFSIZ.

int fd

The file descriptor. Currently CANNOT be a socket since implementation uses read(), not recv().

Generated on Thu Oct 25 01:19:37 2007 for Small, Fast S-Expression Library by  doxygen 1.4.6