Logo Search packages:      
Sourcecode: pwlib version File versions  Download package

BOOL Xmlrpcsrvr::OnStart (  ) [virtual]

Called when the service is started. This typically initialises the service and returns TRUE if the service is ready to run. The Main()# function is then executed.

TRUE if service may start, FALSE if an initialisation failure occurred.

Reimplemented from PHTTPServiceProcess.

Definition at line 48 of file main.cxx.

References PDirectory::Change(), PFilePath::GetDirectory(), and PProcess::GetFile().


  httpNameSpace.AddResource(new PHTTPDirectory("data", "data"));
  httpNameSpace.AddResource(new PServiceHTTPDirectory("html", "html"));

  xmlrpcServer = new PXMLRPCServerResource();

  xmlrpcServer->SetMethod("Function1", PCREATE_NOTIFIER(FunctionNotifier));

  return PHTTPServiceProcess::OnStart();

Here is the call graph for this function:

Generated by  Doxygen 1.6.0   Back to index