Returns a field from an SRV_SERVER structure.
DBCHAR * srv_sfield (
SRV_SERVER * server,
int field,
int * len );
where
For more information about supported configuration options, see srv_config.
A DBCHAR pointer to a null-terminated string containing the field value. The string length is returned in len. If the field is empty, a valid DBCHAR pointer to an empty string is returned and len is set to 0. If the field is unknown, NULL is returned and len is set to -1.
This function returns a pointer to a null-terminated string containing the current value for the field in the server structure.
This entry | For information about |
---|---|
srv_config | Setting Open Data Services configuration parameters |
SRV_GETSERVER | Accessing a client's Open Data Services data structure |
srv_init | Initializing an Open Data Services server application |
srv_log | Writing a message to the Open Data Services log file |
srv_pfield | Returning a field from an SRV_PROC structure |
srv_symbol | Converting an Open Data Services token value to a readable string |