HDLLinkLocalSdk/src/main/java/com/hdl/sdk/link/socket/client/IClient.java
New file @@ -0,0 +1,32 @@ package com.hdl.sdk.link.socket.client; import com.hdl.sdk.link.socket.SocketOptions; /** * Created by Tong on 2021/9/22. */ public interface IClient { void connect() throws Exception; void disconnect(); SocketOptions getOptions(); /** * 监听数据 */ void onHandleResponse() throws Exception; /** * 发送消息 */ void sendMsg(byte[] msg) throws Exception; /** * 连接状态 */ void onConnectStatus(int status); }