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

Returns

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