OpenTP1 Version 7 TP1/Client User's Guide TP1/Client/J

[Contents][Index][Back][Next]

2.8 Facility for monitoring TCP/IP connection establishment

In the facility for monitoring TCP/IP connection establishment, you can specify the maximum amount of time to monitor for the establishment of a TCP/IP connection for sending data, and monitor for connection establishment.

To establish connection, the java.net.Socket.connect method (hereafter referred to as connect method), which is a JavaAPI inside the API of TP1/Client/J, is used. The time-out monitoring time for the connect method is uniquely set in each platform. By monitoring connection establishment by specifying the maximum monitoring time in the TP1/Client/J environment definition, you can make the API of TP1/Client/J return an error earlier than the connect method time-out monitoring time unique to the platform. You specify the maximum monitoring time for connection establishment in the connect method using the dccltconnecttimeout operand of the TP1/Client/J environment definition.

Organization of this section
2.8.1 API that uses the connect method internally
2.8.2 Exceptions that occur when the connect method times out