hxb
2022-09-08 2a01ef5e49422cca49bc7476fc1b8be8c8556561
HDLSDK/HDLLinkLocalSdk/src/main/java/com/hdl/sdk/link/socket/udp/UdpSocketBoot.java
File was renamed from HDLSDK/hdl-socket/src/main/java/com/hdl/sdk/socket/udp/UdpSocketBoot.java
@@ -1,11 +1,12 @@
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;
@@ -103,10 +104,9 @@
            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());
        }
    }