16.7 Messaging server setting file (SdMessagingServer.ini)
This file specifies the operating environment for the messaging server.
Format
[MessagingServer] HttpPort=Android-device-listen-port-number HttpAddress=Android-device-listen-IP-address HttpKeepConnectTime=Android-device-Comet-connection-keep-time HttpClosePendingTime=Android-device-reconnection-wait-time HttpMaxConnection=maximum-number-of-Comet-connections-with-Android-devices ManagePort=communication-server-listen-port-number ManageAddress=communication-server-listen-IP-address
Setting items
The following describes the setting items and specifiable values for the messaging server setting file:
Setting item |
Description |
Specifiable value |
Initial value |
---|---|---|---|
HttpPort |
Specify the listen port number used for establishing TCP connections with Android devices. To change the initial value, if you omit the specification or specify a null string, listen port number 80 is used. Therefore, you must specify this item. |
1 to 65535 |
26079 |
HttpAddress |
Specify the listen IP address used for establishing TCP connections with Android devices. If you omit the specification or specify a null string, all IP addresses on the local computer are listened. |
IPv4 address |
None |
HttpKeepConnectTime |
Specify the time (in seconds) to maintain a Comet connection with an Android device. A connection that exceeds the specified time is disconnected, and then is reconnected with JP1/ITDM2 - SDM (Smart Device Android Agent). |
1 or more (no upper limit; in seconds) |
86400 |
HttpClosePendingTime |
Specify the time to wait for a reconnection from the Android device from which a Comet connection was disconnected. |
0 to 3600 (in minutes) |
60 |
HttpMaxConnection |
Specify the maximum number of simultaneous Comet connections with Android devices. If a connection request exceeding the specified value is issued, a connection is disconnected immediately after being established. |
1 to 30000 |
10000 |
ManagePort |
Specify the listen port number used for establishing TCP connections with the communication server. To change the initial value, if you omit the specification or specify a null string, listen port number 9000 is used. Therefore, you must specify this item. |
1 to 65535 |
26078 |
ManageAddress |
Specify the listen IP address used for establishing TCP connections with the communication server. If you omit the specification or specify a null string, all IP addresses on the local computer are listened. |
IPv4 address |
None |
Example
[MessagingServer] HttpPort=26079 HttpAddress=xxx.xxx.xxx.xxx HttpKeepConnectTime=86400 HttpClosePendingTime=60 HttpMaxConnection=10000 ManagePort=26078 ManageAddress=xxx.xxx.xxx.xxx