NSAPI Functions (in Alphabetical Order)
Chapter
5
NSAPI Function Reference
157
Returns
The integer representing the character, if one was retrieved or the constant
IO_EOF
or
IO_ERROR
, for end of file or error
Parameters
netbuf b
is the buffer from which to retrieve one character.
See also
netbuf_buf2sd, netbuf_close
,
netbuf_grab
,
netbuf_open
netbuf_grab
The
netbuf_grab
function reads
sz
number of bytes from the network buffer’s
(
buf
) socket into the network buffer. If the buffer is not large enough it is resized.
The data can be retrieved from
buf->inbuf
on success.
This function is used by the function
netbuf_buf2sd
.
Syntax
int netbuf_grab(netbuf *buf, int sz);
Returns
The number of bytes actually read (between 1 and
sz
), if the operation was
successful or the constant
IO_EOF
or
IO_ERROR
, for end of file or error
Parameters
netbuf *buf
is the buffer to read into.
int sz
is the number of bytes to read.
See also
netbuf_buf2sd, netbuf_close, netbuf_getc, netbuf_open
netbuf_open
The
netbuf_open
function opens a new network buffer and returns it. You can use
netbuf_open
to create a
netbuf
structure and start using buffered I/O on a socket.
Syntax
netbuf* netbuf_open(SYS_NETFD sd, int sz);
Returns
A pointer to a new
netbuf
structure (network buffer)
Содержание ENTERPRISE SERVER 6.1
Страница 1: ...NSAPI Programmer s Guide Netscape Enterprise Server Version6 1 April 2002 Draft...
Страница 18: ...Where to Find Related Information 18 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 138: ...CGI to NSAPI Conversion 138 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 214: ...NSAPI Functions in Alphabetical Order 214 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 290: ...Miscellaneous 290 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 310: ...The Netscape LDAP Schema 310 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 318: ...cinfo 318 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 324: ...Sample MIME Types File 324 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 336: ...Buffered Streams 336 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 344: ...344 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 350: ...350 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Страница 356: ...356 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...