Sun Java System Web Server 7.0 NSAPI Developer's Guide

Returns

The number of bytes sent to the socket if successful, or the constant IO_ERROR if the file buffer cannot be sent.