company logo

DataSource :: serverPort - SERVER_PORT option

This variable is only necessary when running in a client server environment (object or replication server). In this case, the port number must be identical with the port number passed to the server when starting it.

This variable is only required in connection with the SERVER_NAME or REPLICATION_SERVER variable.

Usually, this value is set in the configuration or ini-file in the SERVER_PORT option for the data source definition.

Default: 6123

SERVER_PORT=6123

Return value:  Port number ( int32  )

The port number must be the same the server has been started with (e.g. 6123). When no port number is passed, the client expects the port number being defined in a system variable ODABA_SERVER_PORT or in a system environment ini-file on the ODABA installation folder.

Implementation overview

Implementation details

  1. Get server port number
    int32 DataSource  :: serverPort (  )

    The function returns the port number currently set in the data source.

  2. to list
  3. Set server port number
    int32 DataSource  :: serverPort ( int32 iPort )

    The function allows setting the server port for the server referred to in the data source. 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() ).

    • iPort - Port number

      The port number must be the same the server has been started with (e.g. 6123). When no port number is passed, the client expects the port number being defined in a system variable ODABA_SERVER_PORT or in a system environment ini-file on the ODABA installation folder.

  4. to list