Class FidoProtocol

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class FidoProtocol
    extends java.lang.Object
    implements java.io.Closeable
    • Constructor Detail

      • FidoProtocol

        public FidoProtocol​(FidoConnection connection)
                     throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • sendAndReceive

        public byte[] sendAndReceive​(byte cmd,
                                     byte[] payload,
                                     @Nullable
                                     CommandState state)
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • getVersion

        public Version getVersion()
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException