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

Ns_RegisterServerShutdown

Overview

Register a shutdown procedure for a virtual server.

Syntax

    typedef void (Ns_Callback) (void *context);
    
    Ns_ProcHandle Ns_RegisterServerShutdown(
    	char 				*hServer, 
    	Ns_Callback				*proc,
    	Ns_OpContext				 context
    );

Description

The Ns_RegisterServerShutdown function registers proc as a shutdown procedure on the specified virtual server. The server calls all shutdown procedures before shutting down, in last-registered first-run order. The shutdown procedure takes the context as its sole argument. A shutdown procedure is often used to close or free a resource allocated by a module's initialization routine.

Top of Page

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