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

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

2.8.1 API that uses the connect method internally

Whether an API uses the connect method internally depends on the operand specification in the TP1/Client/J environment definition. The table below shows the APIs (methods) that internally use the connect method and the conditions for the operands of the TP1/Client/J environment definition inside which the connect method is used. If two or more conditions are listed for an API (method), at least one of the conditions must be satisfied for the connect method to be used internally.

Table 2-3 APIs (methods) that use the connect method internally

Item No. Methods that use the connect method internally Conditions for the operands of the TP1/Client/J environment definition inside which the connect method is used
1 cltAssemSend(byte[] buff, int sendleng, String hostname, int portnum, int timeout, int flags)
  • dcsndrcvtype=DCCLT_ONEWAY_SND
  • dcsndrcvtype=DCCLT_SNDRCV
2 cltSend(byte[] buff, int sendleng, String hostname, int portnum, int flags)
  • dcsndrcvtype=DCCLT_ONEWAY_SND
  • dcsndrcvtype=DCCLT_SNDRCV
3 openConnection(String host, int port) dcrapdirect=Y and dcrapautoconnect=N
4 openConnection() dcrapdirect=Y and dcrapautoconnect=N
5 rpcCall(String group, String service, byte[] in_data, int[] in_len, byte[] out_data, int[] out_len, int flags)
  • dcscddirect=Y
  • dcnamuse=Y
or
  • dcrapdirect=Y and dcrapautoconnect=Y
6 rpcCall(String group, String service, byte[] in_data, byte[] out_data, int flags)
7 rpcCallTo(DCRpcBindTbl direction, String group, String service, byte[] in_data, int[] in_len, byte[] out_data, int[] out_len, int flags)
  • dcscddirect=Y
  • dcnamuse=Y
8 trnBegin() dcrapdirect=Y and dcrapautoconnect=Y