package com.hdl.sdk.link.socket.client; import com.hdl.sdk.link.socket.udp.UdpSocketOptions; /** * Created by hxb on 2021/12/12. */ public interface IUdpClient { /** * 绑定端口 */ void bind() throws Exception; /** * 关闭当前连接 * @return */ boolean close(); UdpSocketOptions getOptions(); /** * 监听数据 */ void onHandleResponse() throws Exception; /** * 发送数据 * @param ipAddress 目标IP * @param port 端口 * @param msg 发送数据 * @throws Exception */ void sendMsg(String ipAddress,int port, byte[] msg) throws Exception; }