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

Returns

The number of bytes placed into buffer (between 1 and sz) if the operation is successful, the constant NETBUF_EOF on end of file, or the constant NETBUF_ERROR if an error occurred.