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

Ns_ConnCopyToFdWithQuota

Overview

Copy connection data to file while enforcing quota

Syntax

    int Ns_ConnCopyToFdWithQuota(
      Ns_Conn *inNSConnection, 
      size_t   inBytesToRead,
      int      fd
    )

Description

This function copies the specified number of bytes from the connection to the file, while enforcing the quota set by the QuotaSize configuration parameter. It returns -1 for an error. NS_QUOTA is returned if the quota is exceeded. If the write operation would cause the quota to be exceeded, the write is not performed. If a directory is created that causes the  quota to be exceeded, the directory is removed.

Top of Page

[ Previous ] [ Contents ] [ Index ] [ Next ]
Copyright © 1996 America Online, Inc.