The template for a start handler is:
#include <ospublic.h> CS_RETCODE CS_PUBLIC start_handler ( CS_CONTEXT *ctx )
where
context – is pointer to the CS_CONTEXT structure.
Start handlers must return CS_SUCCEED unless an error occurs that prevents the application from running successfully. Returning a value other than CS_SUCCEED aborts the server start-up sequence.
Your application does not require a start handler unless you want to use service threads or create global mutexes. In this case, the service threads must be created in the start handler.
Copyright © 2005. Sybase Inc. All rights reserved. |
![]() |