Sun Java System Web Proxy Server 4.0.11 NSAPI Developer's Guide

Returns

The number of bytes placed in buf on success, 0 if no data is available, or a negative value if an error occurred.