Search code examples
javaudpnettydatagram

Why Netty 4 has no Datagram ServerChannel


In Netty 4 there is no Nio/Epoll/DatagramServerChannel implementation, so there is no way to create a ServerBootstrap which listens to UDP connections.

So, basically my question is the following: Why is there no implementation of such a DatagramServerChannel class?


Solution

  • You're looking for io.netty.channel.socket.nio.NioDatagramChannel. See QuoteOfTheMomentServer as example.