SRV_GETSERVER

Returns a pointer to the SRV_SERVER structure being used by a client.

Syntax

SRV_SERVER * SRV_GETSERVER ( SRV_PROC * srvproc );

where

srvproc
Is a pointer to the SRV_PROC structure that is the handle for a particular client connection.

Returns

A pointer to SRV_SERVER. If srvproc is not valid, returns NULL.

Remarks

Every client process has an SRV_PROC structure that contains client login information, the Open Data Services server application name, the event list, and a pointer to the SRV_SERVER structure.

The SRV_GETSERVER macro accesses the pointer to the SRV_SERVER structure within the SRV_PROC structure.

See Also

This entry For information about
SRV_GETCONFIG Accessing a server's configuration structure
srv_sfield Returning a field from an SRV_SERVER structure