company logo

DataSource :: serverName - SERVER_URL option

The server name refers to the name or the TCP/IP address of the server machine, where the server is running.

Usually, this value is set in the configuration or ini-file in the SERVER_URL option for the data source definition, but it might also be defined as global option variable.

When a SERVER_URL option variable is defined, dictionary and client are accessed via server (object or replication mode). In order to use a local dictionary or database, instead, DICTIONARY.CONNECTION=local or DATABASE.CONNECTION=local has to be defined.

SERVER_URL=server_name

Return value:  Server name ( odaba::String & )

Valid server name or IP address referring to the server in a client server application.

Implementation overview

Implementation details

  1. Get server name
    odaba::String DataSource  :: serverName (  )

    The function returns the server name. The server name might be empty when accessing local databases.

  2. to list
  3. Set server name
    odaba::String DataSource  :: serverName ( odaba::String &sServerName )

    The function allows setting the server name for the server to the data source should be connected. The function does not close the or reconnect the data source automatically, i.e. the server name should be set before connecting the data source ( connect() ).

    • sServerName - Server name

      Valid server name or IP address referring to the server in a client server application.

  4. to list