File was renamed from HDLSDK/hdl-socket/src/main/java/com/hdl/sdk/socket/udp/UdpSocketBoot.java |
| | |
| | | package com.hdl.sdk.socket.udp;
|
| | | package com.hdl.sdk.link.socket.udp;
|
| | |
|
| | | import com.hdl.sdk.common.utils.LogUtils;
|
| | | import com.hdl.sdk.common.utils.TextUtils;
|
| | | import com.hdl.sdk.common.utils.ThreadToolUtils;
|
| | | import com.hdl.sdk.socket.SocketRequest;
|
| | | import com.hdl.sdk.socket.client.IUdpClient;
|
| | | import com.hdl.sdk.socket.listener.SendListener;
|
| | |
|
| | | import com.hdl.sdk.link.common.utils.LogUtils;
|
| | | import com.hdl.sdk.link.common.utils.TextUtils;
|
| | | import com.hdl.sdk.link.common.utils.ThreadToolUtils;
|
| | | import com.hdl.sdk.link.socket.listener.SendListener;
|
| | | import com.hdl.sdk.link.socket.SocketRequest;
|
| | | import com.hdl.sdk.link.socket.client.IUdpClient;
|
| | |
|
| | | import java.util.HashMap;
|
| | | import java.util.Map;
|
| | |
| | | if (listener != null && !TextUtils.isEmpty(request.getAction())) {
|
| | | sendMap.put(request.getAction(), listener);
|
| | | }
|
| | | LogUtils.i("发送目标IP和端口", ipAddress + ":" + port);
|
| | | client.sendMsg(ipAddress, port, msg);
|
| | | client.sendMsg(ipAddress,port, msg);
|
| | | } catch (Exception e) {
|
| | | LogUtils.i("发送失败:" + e.getMessage());
|
| | | LogUtils.e("发送失败:" + e.getMessage());
|
| | | }
|
| | | }
|
| | |
|