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_URL option variable. When defining a SERVER_URL option variable but no SERVER_PORT , 6123 is used as default.
Usually, this value is set in the configuration or ini-file in the SERVER_PORT option for the data source definition, but it might also be defined as global option variable.
Default: 6123
SERVER_PORT=1234
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 SERVER_PORT or in a system environment ini-file on the ODABA installation folder.
Implementation overview
- Get server port number
DataSource :: serverPort (  ) - Set server port number
DataSource :: serverPort ( iPort )
Implementation details
-
Get server port number
int32 DataSource  :: serverPort (  )
The function returns the port number currently set in the data source.
to list
-
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 SERVER_PORT or in a system environment ini-file on the ODABA installation folder.
to list
- iPort
- Port number