
org.rx.net.socks.Socks5UdpAssociateHandler Maven / Gradle / Ivy
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 - 2025 Weber Informatics LLC | Privacy Policy