Function :
 CAI_getConnectionInfoFromINI


Description

This function simplifies the setting of the APIv2 connection parameters by reading the connection parameters from a .INI file, rather than having to hardcode these values.
The .INI will also contain the sign-in parameters when the new architecture is in place on the Amadeus side.

API : Application Programming Interface


CaiErr CAI_getConnectionInfoFromINI(char * ini_name, 
                    CAI_Connection_SI *connection_info)
This function returns CAI_OK when successfull.


Field Descriptions

Parameter In/Out Description
ini_name In .INI file name.
connnection_info Out A structure CAI_ConnnectionSI structure, initialized by a call to the CAI_initConnection_SI() function.


INI file samples

.INI file sample:

# This is an example of ini file for APIv2 Gateway Connections
# to the Amadeus test system.

# TCP/IP Connection information

[CAI_Connection_SI]
tcp_connection_type = 0        ; type 0 connection to Gateway
tcp_connection_nb = 1

[CAI_Connection0]
tcp_server = 195.27.163.89
port_number = 20002

# Custom sign information (empty)

[CAI_CustomSign]