static public method CO2GTransport.setApplicationID

Brief

Sets an application id property.

Declaration
C++
static void  setApplicationID (const char * applicationID)

Parameters
applicationID

A new applicationID string.

Details

The applicationID is used on the server for identifying your application. The method should be called before a client application logs in to a server. The method can be called many times, but usually it is called once after the application starts. In case the applicationID is not set by the client application, ForexConnect sends to the server the name of the application executable module. In case of the Windows system, it is the name of an .exe file. In case of the Linux/Mac systems, it is the name of a program.

This parameter will be used during the next call of the IO2GSession.login method.

Set Application ID [hide]

CO2GTransport::setApplicationID("My Application ID");
IO2GSession *session = CO2GTransport::createSession();
SessionStatusListener *listener = new SessionStatusListener(session, true, subsession.c_str(), pin.c_str());
session->subscribeSessionStatus(listener);
printf("connecting...\n");
session->login(user.c_str(), password.c_str(), url.c_str(), connection.c_str());

Declared in CO2GTransport

back