NSAPI Functions (in Alphabetical Order)
156
Netscape Enterprise Server NSAPI Programmer’s Guide • April 2002 (Draft)
Syntax
int netbuf_buf2sd(netbuf *buf, SYS_NETFD sd, int len);
Returns
The number of bytes transferred to the socket, if successful or the constant
IO_ERROR
if unsuccessful
Parameters
netbuf *buf
is the buffer to send.
SYS_NETFD sd
is the platform-independent identifier of the socket.
int len
is the length of the buffer.
See also
netbuf_close
,
netbuf_getc, netbuf_grab
,
netbuf_open
netbuf_close
The
netbuf_close
function deallocates a network buffer and closes its associated
files. Use this function when you need to deallocate the network buffer and close
the socket.
You should never close the
netbuf
parameter in a Session structure.
Syntax
void netbuf_close(netbuf *buf);
Returns
void
Parameters
netbuf *buf
is the buffer to close.
See also
netbuf_buf2sd
,
netbuf_getc, netbuf_grab
,
netbuf_open
netbuf_getc
The
netbuf_getc
function retrieves a character from the cursor position of the
network buffer specified by
b
.
Syntax
netbuf_getc(netbuf b);
Summary of Contents for ENTERPRISE SERVER 6.1
Page 1: ...NSAPI Programmer s Guide Netscape Enterprise Server Version6 1 April 2002 Draft...
Page 290: ...Miscellaneous 290 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Page 318: ...cinfo 318 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Page 336: ...Buffered Streams 336 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Page 344: ...344 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Page 350: ...350 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...
Page 356: ...356 Netscape Enterprise Server NSAPI Programmer s Guide April 2002 Draft...