|   | ![[ Previous ]](navbprev.gif)  ![[ Contents ]](navbhome.gif)  ![[ Index ]](navbhelp.gif)  ![[ Next ]](navbnext.gif)  | 
    int Ns_ConnReturnOpenFile(
    Ns_Conn *conn,
    int status,
    char *type,
    int fd,
    int len
    );
The Ns_ConnReturnOpenFd function is the same as Ns_ConnReturnFile except that it takes an fd argument instead of a file name, and it requires an additional length argument. It returns the entire contents of the given file to the client. Ns_ConnReturnOpenFd returns a status of NS_OK or NS_ERROR.