类 NetworkHandle
java.lang.Object
com.inlaylink.connect.net.NetworkHandle
- 所有已实现的接口:
ConnectHandle
inlaylink 20240510
-
构造器概要
构造器构造器说明NetworkHandle(String host) Instantiates a new Network handle.NetworkHandle(String host, boolean withBoard) Instantiates a new Network handle. -
方法概要
-
构造器详细资料
-
NetworkHandle
Instantiates a new Network handle.- 参数:
host- the host
-
NetworkHandle
Instantiates a new Network handle.- 参数:
host- the hostwithBoard- the with board
-
-
方法详细资料
-
connect
public boolean connect()从接口复制的说明:ConnectHandle连接读写器- 指定者:
connect在接口中ConnectHandle- 返回:
- true :成功,false:失败
-
isConnected
public boolean isConnected()从接口复制的说明:ConnectHandle读写器连接状态- 指定者:
isConnected在接口中ConnectHandle- 返回:
- true :已连接,false:未连接
-
send
public void send(byte[] bytes) 从接口复制的说明:ConnectHandle发送数据- 指定者:
send在接口中ConnectHandle- 参数:
bytes- 字节数组
-
onReceive
从接口复制的说明:ConnectHandle数据接收- 指定者:
onReceive在接口中ConnectHandle- 参数:
consumer- 字节数组
-
disconnect
public void disconnect()从接口复制的说明:ConnectHandle断开连接- 指定者:
disconnect在接口中ConnectHandle
-