Hello All,
I am having issues with the Ns_RegisteratStartup command. Please read on. Any
suggestion/or other techniques to solve this is highly welcome. Thanks in
advance.

I need to execute a function call when the AOL-Server starts up. I have
registerd a callback function in my Ns_ModuleInit routine.  My Ns_ModuleInit
routine looks like this now.

int Ns_ModuleInit(cvhar *server, char*name)
{
   .
  .
  .
 Ns_RegisterAtStartup(Ns_Callback*)ReadData, NULL)
.
.
.
return NS_OK;
}
Once the server starts up successfully, I want the control to go the ReadData
call back function that I have registered using  the Ns_RegisterAtStartup
routine.
Currently I am just printing a log message in my ReadData function. The code
compiles well, but my AOL server doesnt seem to start up. Any clues on where I
am going wrong.

Reply via email to