Difference between revisions of "Ns ModuleInit()"
Jump to navigation
Jump to search
(created page) |
(No difference)
|
Revision as of 16:12, 3 December 2005
Ns_ModuleInit()
This function is called by the server after the module is loaded. Implementation here entails:
- . Read configuration data, if any
- . Initialise data structures, if any
- . Initialise the server's Tcl interpreter with any Tcl function you wish to provide: see Ns_TclInitInterps
- . Other things your module needs to do after being loaded but before being called.
int Ns_ModuleInit(char *hServer, char *hModule) { return (Ns_TclInitInterps(hServer, MyInterpInitFuncName, NULL)); }