Interface ProtocolLayer

    • Field Detail

      • EMPTY_BUFFER

        static final ByteBuffer EMPTY_BUFFER
        A handy constant to use for no-op send/receive calls.
    • Method Detail

      • init

        void init​(@NonNull
                  ProtocolStack.Ptr ptr)
           throws IOException
        Initializes the layer with its ProtocolStack.Ptr. All lower layers in the stack will be initialized before a call to this method. All layers in a stack will be initialized before a call to start().
        Parameters:
        ptr - the position of this layer in the stack.
        Throws:
        IOException - if something goes wrong.
      • start

        void start()
            throws IOException
        Starts this layer. All layers in the stack will be initialized before a call to this method. All lower layers in the stack will have been started before this layer is started.
        Throws:
        IOException - if something goes wrong.