Example usage for io.netty.channel.socket.nio NioDatagramChannel localAddress

List of usage examples for io.netty.channel.socket.nio NioDatagramChannel localAddress

Introduction

In this page you can find the example usage for io.netty.channel.socket.nio NioDatagramChannel localAddress.

Prototype

@Override
    public InetSocketAddress localAddress() 

Source Link

Usage

From source file:nz.co.fortytwo.signalk.server.CamelUdpNettyHandler.java

License:Open Source License

@Override
public void channelActive(ChannelHandlerContext ctx) throws Exception {
    // Send greeting for a new connection.
    NioDatagramChannel udpChannel = (NioDatagramChannel) ctx.channel();
    if (logger.isDebugEnabled())
        logger.debug("channelActive:" + udpChannel.localAddress());

}