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

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

2.8.2 Exceptions that occur when the connect method times out

The API of TP1/Client/J returns different exceptions depending on whether the connect method time-out monitoring time unique to each platform or the time specified in the dccltconnecttimeout operand expires. This is because the difference in the monitoring time that expires affects the exceptions that occur in the connect method.

If a value greater than the time-out monitoring time unique to each platform is specified in the dccltconnecttimeout operand, the time-out monitoring time unique to each platform expires first. Consequently, the specification of the dccltconnecttimeout operand becomes invalid. If the specification of the dccltconnecttimeout operand is omitted, the connect method time-out monitoring time becomes unique to each platform.

The following table shows the exceptions that the API of TP1/Client/J returns when the connect method time-out monitoring time unique to each platform expires or when the time specified in the dccltconnecttimeout operand expires.

Table 2-4 Exceptions returned by the API (method) when the connect method times out

Item No. Method Unique to each platform#1 dccltconnecttimeout operand#2
1 cltAssemSend(byte[] buff, int sendleng, String hostname, int portnum, int timeout, int flags) ErrNetDownAtClientException ErrClientTimedOutException
2 cltSend(byte[] buff, int sendleng, String hostname, int portnum, int flags) ErrNetDownAtClientException ErrClientTimedOutException
3 openConnection(String host, int port) ErrNetDownAtClientException ErrClientTimedOutException
4 openConnection() ErrNetDownAtClientException ErrClientTimedOutException
5 rpcCall(String group, String service, byte[] in_data, int[] in_len, byte[] out_data, int[] out_len, int flags) ErrNetDownAtClientException ErrClientTimedOutException
6 rpcCall(String group, String service, byte[] in_data, byte[] out_data, int flags) ErrNetDownAtClientException ErrClientTimedOutException
7 rpcCallTo(DCRpcBindTbl direction, String group, String service, byte[] in_data, int[] in_len, byte[] out_data, int[] out_len, int flags) ErrConnRefusedException ErrNetDownAtClientException
8 trnBegin() ErrConnRefusedException ErrClientTimedOutException

#1
Exceptions that occur when the connect method time-out monitoring time unique to each platform expires.

#2
Exceptions that occur when the time specified in the dccltconnecttimeout operand expires.