Constants

The C API uses two sets of constants. The first set is for the Server component, described in the table below.

Table 1. Constants for the Server Component

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 component.

Table 2. Constants for the Message Component

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