1 #ifndef _NETSTRING_H_INCLUDED_
2 #define _NETSTRING_H_INCLUDED_
23 #define NETSTRING_ERR_EOF 1
24 #define NETSTRING_ERR_TIME 2
25 #define NETSTRING_ERR_FORMAT 3
26 #define NETSTRING_ERR_SIZE 4
41 #define NETSTRING_PUT_BUF(str, buf) \
42 netstring_put((str), vstring_str(buf), VSTRING_LEN(buf))
VSTRING * netstring_memcpy(VSTRING *, const char *, ssize_t)
ssize_t netstring_get_length(VSTREAM *)
const char * netstring_strerror(int)
void netstring_put_multi(VSTREAM *,...)
void netstring_get_terminator(VSTREAM *)
void netstring_except(VSTREAM *, int)
void netstring_put(VSTREAM *, const char *, ssize_t)
VSTRING * netstring_get_data(VSTREAM *, VSTRING *, ssize_t)
VSTRING * netstring_get(VSTREAM *, VSTRING *, ssize_t)
void netstring_setup(VSTREAM *, int)
void netstring_fflush(VSTREAM *)
VSTRING * netstring_memcat(VSTRING *, const char *, ssize_t)