Sun Java System Web Server 6.1 SP9 NSAPI Programmer's Guide


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.


netbuf* netbuf_open(SYS_NETFD sd, int sz);


A pointer to a new netbuf structure (network buffer).


SYS_NETFD sd is the platform-independent identifier of the socket.

int sz is the number of characters to allocate for the network buffer.

See Also

netbuf_buf2sd, netbuf_close, netbuf_getc, netbuf_grab, netbuf_getbytes