Sun Java System Web Server 7.0 Update 3 NSAPI Developer's Guide

netbuf_open() Function

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);

Return Values

A pointer to a new netbuf network buffer structure.


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() Function, netbuf_close() Function, netbuf_getc() Function, netbuf_getbytes() Function, netbuf_grab() Function