f2s_server_tcpip_port¶
Applies to: MySql/MariaDB, PostgreSQL Drivers
Syntax¶
set_attribute f2s_server_tcpip_port of {DriverID} to {variable}
get_attribute f2s_server_tcpip_port of {DriverID} to {variable}
Parameter |
Description |
---|---|
DriverID |
The ID of the driver for which this applies. In most cases, you should use _f2s_ActiveDriverId. |
variable |
Integer variable of the port number used to connect to the server. |
Description¶
Set this attribute to change the port used for all TCP/IP connections to the server. Get this attribute to determine which port is being used for all TCP/IP connections to the server.
This attribute should be set before the login command but after calling the command f2s_activate_driver.
Note: The port set using this attribute is for the current session only.
Examples¶
get_attribute
integer iPort
get_attribute f2s_server_tcpip_port of _f2s_ActiveDriverId to iPort
set_attribute
set_attribute f2s_server_tcpip_port of _f2s_ActiveDriverId to 5000