Bug 3230 - Attempt to use Epoll native transport if available
[openflowjava.git] / openflow-protocol-impl / src / main / java / org / opendaylight / openflowjava / protocol / impl / core / UdpChannelInitializer.java
index 9ff7d65b4dcd073e7d84efd47b789da946680aeb..ccb8b06c7c95e8dc1fba73a15770135f5724477a 100644 (file)
@@ -8,16 +8,16 @@
 
 package org.opendaylight.openflowjava.protocol.impl.core;
 
-import io.netty.channel.socket.nio.NioDatagramChannel;
+import io.netty.channel.socket.DatagramChannel;
 
 /**
  * @author michal.polkorab
  *
  */
-public class UdpChannelInitializer extends ProtocolChannelInitializer<NioDatagramChannel> {
+public class UdpChannelInitializer extends ProtocolChannelInitializer<DatagramChannel> {
 
     @Override
-    protected void initChannel(NioDatagramChannel ch) throws Exception {
+    protected void initChannel(DatagramChannel ch) throws Exception {
         ch.pipeline().addLast(PipelineHandlers.OF_DATAGRAMPACKET_HANDLER.name(),
                 new OFDatagramPacketHandler(getSwitchConnectionHandler()));
         OFDatagramPacketDecoder ofDatagramPacketDecoder = new OFDatagramPacketDecoder();
@@ -27,6 +27,5 @@ public class UdpChannelInitializer extends ProtocolChannelInitializer<NioDatagra
         OFDatagramPacketEncoder ofDatagramPacketEncoder = new OFDatagramPacketEncoder();
         ofDatagramPacketEncoder.setSerializationFactory(getSerializationFactory());
         ch.pipeline().addLast(PipelineHandlers.OF_ENCODER.name(), ofDatagramPacketEncoder);
-//        connectionFacade.fireConnectionReadyNotification();
     }
 }
\ No newline at end of file