Class BIONetworkLayer

    • Method Detail

      • write

        protected void write​(@NonNull
                             ByteBuffer data)
                      throws IOException
        SPI: Perform the actual write to the recipient. This method should be non-blocking. The data should be enqueued and written in the order of calls to write()}.
        Specified by:
        write in class NetworkLayer
        data - the data received. Any data consumed from the ByteBuffer can be assumed as processed. Any data not consumed from the ByteBuffer will be the responsibility of the caller to resubmit in subsequent calls.
        IOException - if something goes wrong
      • doCloseRecv

        public void doCloseRecv()
        Request the recv side to be closed.
        Specified by:
        doCloseRecv in class NetworkLayer
      • start

        public 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.
        Specified by:
        start in interface ProtocolLayer
        start in class NetworkLayer
        IOException - if something goes wrong.