org.rx.net.socks.DirectProxyServer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rxlib Show documentation
Show all versions of rxlib Show documentation
A set of utilities for Java
//package org.rx.net.socks;
//
//import io.netty.bootstrap.Bootstrap;
//import io.netty.bootstrap.ServerBootstrap;
//import io.netty.channel.*;
//import lombok.Getter;
//import lombok.NonNull;
//import lombok.SneakyThrows;
//import org.rx.core.Disposable;
//import org.rx.net.Sockets;
//import org.rx.net.TransportUtil;
//import org.rx.util.function.BiFunc;
//
//import java.net.InetSocketAddress;
//import java.util.concurrent.ConcurrentLinkedQueue;
//
//public final class DirectProxyServer extends Disposable {
// class RequestHandler extends ChannelInboundHandlerAdapter {
// @SneakyThrows
// @Override
// public void channelActive(ChannelHandlerContext inbound) {
// InetSocketAddress proxyEndpoint = router.invoke((InetSocketAddress) inbound.channel().remoteAddress());
// ConcurrentLinkedQueue