All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.rx.net.socks.Socks5UdpAssociateHandler Maven / Gradle / Ivy

There is a newer version: 3.0.0
Show newest version
package org.rx.net.socks;

import io.netty.channel.ChannelHandler;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelInboundHandlerAdapter;
import lombok.extern.slf4j.Slf4j;

@Slf4j
@ChannelHandler.Sharable
public class Socks5UdpAssociateHandler extends ChannelInboundHandlerAdapter {
    public static final Socks5UdpAssociateHandler DEFAULT = new Socks5UdpAssociateHandler();

    @Override
    public void channelInactive(ChannelHandlerContext ctx) throws Exception {
        log.info("UdpAssociate {} inactive", ctx.channel().remoteAddress());
        super.channelInactive(ctx);
    }

    @Override
    public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {
        log.warn("UdpAssociate {}", cause.getMessage());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy