Sun Java System Web Server 7.0 NSAPI Developer's Guide

netbuf_buf2sd

The netbuf_buf2sd function sends a buffer to a socket. You can use this function to send data from IPC pipes to the client.

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_getbytes, netbuf_grab, netbuf_open