Constants
The C++ API uses two sets of constants. The first set is for the Server class described in the table below.
Constant Name |
Description/Default |
Example |
---|---|---|
Server::HOST |
String for server host name. Default is "localhost". |
65.89.200.89 |
Server::PORT |
String for server port. Default is "8080". |
10119 |
Server::ACCOUNT_ID |
String for server account ID. No default value. |
user1 |
Server::ACCOUNT_PASSWORD |
String for server account password. No default value. |
user1 |
Server::CONNECTION_TIMEOUT |
String for server connection timeout, in milliseconds. Default is "5000". |
50000 |
Server::CONNECTION_TYPE |
String for server connection type. Currently only supports HTTP, HTTPS, or SOCKET. Default is "HTTP". |
HTTP(S) |
Server::PROXY_HOST |
String for proxy server host name. No default value. |
192.168.1.77 |
Server::PROXY_PORT |
String for proxy server port. No default value. |
8080 |
Server::PROXY_USER |
String for proxy server account ID. No default value. |
user1 |
Server::PROXY_PASSWORD |
String for proxy server account password. No default value. |
user1 |
The second set of constants is for the Message class:
Constant Name |
Description |
Example |
---|---|---|
Message::CONTEXT_ACCOUNT_ID |
String for message context account ID. |
user1 |
Message::CONTEXT_ACCOUNT_PASSWORD |
String for message context account password. |
user1 |
Message::CONTEXT_SERVICE_NAME |
String for message context service name. |
echoservice |