src/server/nsapi.h

changeset 8
f4d56bf9de40
parent 6
ce8fecc9847d
child 9
30e51941a673
equal deleted inserted replaced
7:3c2ed7a7a5fd 8:f4d56bf9de40
1601 * The following macros/functions are obsolete and are only maintained for 1601 * The following macros/functions are obsolete and are only maintained for
1602 * compatibility. Do not use them. 1602 * compatibility. Do not use them.
1603 * ----------------------------------------------------------------------- 1603 * -----------------------------------------------------------------------
1604 */ 1604 */
1605 1605
1606
1607 /* new macro and function definitions begin */
1608
1609 /* netbuf functions */
1610 NSAPI_PUBLIC netbuf *netbuf_open(SYS_NETFD sd, int sz);
1611
1612 NSAPI_PUBLIC void netbuf_close(netbuf *buf);
1613
1614 NSAPI_PUBLIC unsigned char * netbuf_replace(netbuf *buf,
1615 unsigned char *inbuf, int pos, int cursize, int maxsize);
1616
1617 NSAPI_PUBLIC int netbuf_next(netbuf *buf, int advance);
1618
1619 NSAPI_PUBLIC int netbuf_getbytes(netbuf *buf, char *buffer, int size);
1620
1621 NSAPI_PUBLIC int netbuf_grab(netbuf *buf, int sz);
1622
1623 /* end new macro and function definitions */
1624
1606 #define SYS_STDERR STDERR_FILENO 1625 #define SYS_STDERR STDERR_FILENO
1607 1626
1608 #ifdef XP_WIN32 1627 #ifdef XP_WIN32
1609 1628
1610 typedef HANDLE pid_t; 1629 typedef HANDLE pid_t;

mercurial