--- a/src/server/nsapi.h Wed Dec 28 10:57:36 2011 +0100 +++ b/src/server/nsapi.h Wed Dec 28 22:02:08 2011 +0100 @@ -1603,6 +1603,25 @@ * ----------------------------------------------------------------------- */ + +/* new macro and function definitions begin */ + +/* netbuf functions */ +NSAPI_PUBLIC netbuf *netbuf_open(SYS_NETFD sd, int sz); + +NSAPI_PUBLIC void netbuf_close(netbuf *buf); + +NSAPI_PUBLIC unsigned char * netbuf_replace(netbuf *buf, + unsigned char *inbuf, int pos, int cursize, int maxsize); + +NSAPI_PUBLIC int netbuf_next(netbuf *buf, int advance); + +NSAPI_PUBLIC int netbuf_getbytes(netbuf *buf, char *buffer, int size); + +NSAPI_PUBLIC int netbuf_grab(netbuf *buf, int sz); + +/* end new macro and function definitions */ + #define SYS_STDERR STDERR_FILENO #ifdef XP_WIN32