类 NetworkHandle

  • 所有已实现的接口:
    ConnectHandle

    public class NetworkHandle
    extends java.lang.Object
    implements ConnectHandle
    inlaylink 20240510
    • 构造器概要

      构造器 
      构造器 说明
      NetworkHandle​(java.lang.String host)
      Instantiates a new Network handle.
      NetworkHandle​(java.lang.String host, boolean withBoard)
      Instantiates a new Network handle.
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      boolean connect()
      连接读写器
      void disconnect()
      断开连接
      boolean isConnected()
      读写器连接状态
      void onReceive​(Consumer<byte[]> consumer)
      数据接收
      void send​(byte[] bytes)
      发送数据
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • NetworkHandle

        public NetworkHandle​(java.lang.String host)
        Instantiates a new Network handle.
        参数:
        host - the host
      • NetworkHandle

        public NetworkHandle​(java.lang.String host,
                             boolean withBoard)
        Instantiates a new Network handle.
        参数:
        host - the host
        withBoard - the with board