[ Previous ] [ Contents ] [ Index ] [ Next ]

Ns_ConnReturnFile

Overview

Return a file to a client

Syntax

    int Ns_ConnReturnFile(
    Ns_Conn *conn,
    int status,
    char *type,
    char *file
    );

Description

The Ns_ConnReturnFile function returns the entire contents of the given file to the client. In addition to setting the HTTP status response line and Content-Type headers from the given parameters, Ns_ConnReturnFile also uses the stat system call to generate the appropriate Last-Modified and Content-Length headers. Ns_ConnReturnFile returns a status of NS_OK or NS_ERROR.

Top of Page

[ Previous ] [ Contents ] [ Index ] [ Next ]
Copyright © 1998-99 America Online, Inc.