Class OFDatagramPacketHandler

  • All Implemented Interfaces:,

    public class OFDatagramPacketHandler
    extends io.netty.handler.codec.MessageToMessageDecoder<>
    Handler for datagram packets.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface
    • Field Summary

      Modifier and Type Field Description
      static byte LENGTH_OF_HEADER
      Length of OpenFlow 1.3 header.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void decode​( ctx, msg, List<Object> out)  
      void exceptionCaught​( ctx, Throwable cause)  
      • Methods inherited from class io.netty.handler.codec.MessageToMessageDecoder

        acceptInboundMessage, channelRead
      • Methods inherited from class

        channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggered
      • Methods inherited from class

        ensureNotSharable, handlerAdded, handlerRemoved, isSharable
      • Methods inherited from interface

        handlerAdded, handlerRemoved
    • Field Detail


        public static final byte LENGTH_OF_HEADER
        Length of OpenFlow 1.3 header.
        See Also:
        Constant Field Values
    • Constructor Detail

      • OFDatagramPacketHandler

        public OFDatagramPacketHandler​(SwitchConnectionHandler sch,
                                       int channelOutboundQueueSize)
        Default constructor.
        sch - the switchConnectionHandler that decides what to do with incomming message / channel
        channelOutboundQueueSize - the queue size is made configurable
    • Method Detail

      • exceptionCaught

        public void exceptionCaught​( ctx,
                                    Throwable cause)
        Specified by:
        exceptionCaught in interface
        Specified by:
        exceptionCaught in interface
        exceptionCaught in class
      • decode

        protected void decode​( ctx,
                              List<Object> out)
        Specified by:
        decode in class io.netty.handler.codec.MessageToMessageDecoder<>