Implementing ostcConnect()

ostcConnect()

void ostcConnect(ostc_ServerSession *); 

Implement this function as part of your Server plug-in. The Component Server calls ostcConnect() when the Server first starts up.

The function must call ostc_ServerSession::addOperation() on the specified server session in order to add each operation the session is to execute. The function can also call other members of ostc_ServerSession to modify Server start-up parameters or to expose ObjectStore Inspector data views.

You can also implement this function to set routing data with ostc_ServerSession::setUserRouteData().

The Server does not call this function within an ObjectStore transaction. You are responsible for using transactions to access persistent data within this function.

Click here for an example.



[previous] [next]