srv_run

Starts an Open Data Services server application.

Syntax

int srv_run ( SRV_SERVER * server );

where

server
Is a pointer to the SRV_SERVER structure. Use srv_init to get this pointer.

Returns

SRV_STOP for a stopped server. It returns FAIL if the server cannot be run.

Remarks

Once started, the server waits for a client request, calls the appropriate event handler to process the request, and then continues waiting. The srv_run function does not return until the server has been stopped by an SRV_STOP event.

If a server has stopped, you must use srv_init to re-initialize it before you can restart it.

See Also

This entry For information about
srv_config Configuring an Open Data Services server application
srv_init Initializing an Open Data Services server application