| | |
| | | void onFailure(HDLLinkCode hdlLinkCode);
|
| | | }
|
| | |
|
| | | public HDLConnectHelper(Long sendAwaitTime, int maxRetry, String ipAddress, int port,
|
| | | LinkRequest linkRequest, HdlSocketListener listener, boolean isTcp) {
|
| | | this(sendAwaitTime,maxRetry,ipAddress,port,linkRequest,listener,isTcp,false);
|
| | | }
|
| | | /**
|
| | | * 发送UDP或者TCP数据
|
| | | *
|
| | |
| | | * @param isTcp 是否TCP
|
| | | */
|
| | | public HDLConnectHelper(Long sendAwaitTime, int maxRetry, String ipAddress, int port,
|
| | | LinkRequest linkRequest, HdlSocketListener listener, boolean isTcp) {
|
| | | LinkRequest linkRequest, HdlSocketListener listener, boolean isTcp,boolean useSubThread) {
|
| | | this.sendAwaitTime = sendAwaitTime;
|
| | | this.maxRetry = maxRetry;
|
| | | this.ipAddress = ipAddress;
|
| | |
| | | this.replyTopic = linkRequest.getReplyTopic();
|
| | | this.listener = listener;
|
| | | this.isTcp = isTcp;
|
| | | this.useSubThread=useSubThread;
|
| | |
|
| | |
|
| | | eventListener = new EventListener() {
|
| | |
| | | */
|
| | | public HDLConnectHelper(Long sendAwaitTime, int maxRetry, String ipAddress, int port,
|
| | | LinkRequest linkRequest, HdlSocketListener listener, boolean isTcp, String mac) {
|
| | | this(sendAwaitTime, maxRetry, ipAddress, port, linkRequest, listener, isTcp);
|
| | | this(sendAwaitTime, maxRetry, ipAddress, port, linkRequest, listener, isTcp,false);
|
| | | this.mac = mac;
|
| | | }
|
| | |
|
| | | public HDLConnectHelper(Long sendAwaitTime, int maxRetry, String ipAddress, int port,
|
| | | LinkRequest linkRequest, HdlSocketListener listener, boolean isTcp, String mac,boolean subThread) {
|
| | | this(sendAwaitTime, maxRetry, ipAddress, port, linkRequest, listener, isTcp,subThread);
|
| | | this.mac = mac;
|
| | | }
|
| | |
|