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

Return Values

The number of bytes placed into the 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.