generated from mingliqiye/lib-tem
This commit is contained in:
parent
6056f6fa90
commit
847536080b
@ -41,7 +41,7 @@ dependencies {
|
|||||||
implementation("com.mingliqiye:network-endpoint:1.0.2")
|
implementation("com.mingliqiye:network-endpoint:1.0.2")
|
||||||
implementation("com.mingliqiye:string-utilts:1.0.4")
|
implementation("com.mingliqiye:string-utilts:1.0.4")
|
||||||
implementation("com.mingliqiye:socket-utilts:1.0.6")
|
implementation("com.mingliqiye:socket-utilts:1.0.6")
|
||||||
implementation("org.apache.logging.log4j:log4j-core:2.12.4")
|
implementation("org.apache.logging.log4j:log4j-core:2.25.0")
|
||||||
implementation("com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.19.1")
|
implementation("com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.19.1")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
GROUPSID=com.mingliqiye
|
GROUPSID=com.mingliqiye
|
||||||
ARTIFACTID=tcp-proxy
|
ARTIFACTID=tcp-proxy
|
||||||
VERSIONS=0.1
|
VERSIONS=0.2
|
||||||
MAINCLASS=com.mingliqiye.tcp.proxy.Main
|
MAINCLASS=com.mingliqiye.tcp.proxy.Main
|
||||||
JDKVERSIONS=1.8
|
JDKVERSIONS=1.8
|
||||||
|
|||||||
@ -9,7 +9,9 @@ import org.apache.logging.log4j.Logger;
|
|||||||
|
|
||||||
public class Main {
|
public class Main {
|
||||||
|
|
||||||
private static final Logger log = LogManager.getLogger(Main.class);
|
private static final Logger log = LogManager.getLogger(
|
||||||
|
Main.class.getName()
|
||||||
|
);
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
log.info("启动中...");
|
log.info("启动中...");
|
||||||
|
|||||||
@ -7,7 +7,7 @@ import org.apache.logging.log4j.Logger;
|
|||||||
|
|
||||||
public class Proxy {
|
public class Proxy {
|
||||||
|
|
||||||
private static Logger log = LogManager.getLogger(Proxy.class);
|
private static Logger log = LogManager.getLogger(Proxy.class.getName());
|
||||||
private final TcpSocketServer tcpSocketServer;
|
private final TcpSocketServer tcpSocketServer;
|
||||||
|
|
||||||
Proxy(NetworkEndpoint endpoint, NetworkEndpoint remoteEndpoint) {
|
Proxy(NetworkEndpoint endpoint, NetworkEndpoint remoteEndpoint) {
|
||||||
|
|||||||
@ -14,7 +14,9 @@ import org.apache.logging.log4j.Logger;
|
|||||||
|
|
||||||
public class ProxyClient extends Thread implements Closeable {
|
public class ProxyClient extends Thread implements Closeable {
|
||||||
|
|
||||||
private static Logger log = LogManager.getLogger(ProxyClient.class);
|
private static Logger log = LogManager.getLogger(
|
||||||
|
ProxyClient.class.getName()
|
||||||
|
);
|
||||||
|
|
||||||
private final String id;
|
private final String id;
|
||||||
|
|
||||||
|
|||||||
@ -20,7 +20,9 @@ public class ServerEvent extends TcpServerImplementation {
|
|||||||
*/
|
*/
|
||||||
private final Map<String, ProxyClient> clientMap =
|
private final Map<String, ProxyClient> clientMap =
|
||||||
new ConcurrentHashMap<>();
|
new ConcurrentHashMap<>();
|
||||||
private static Logger log = LogManager.getLogger(Proxy.class);
|
private static Logger log = LogManager.getLogger(
|
||||||
|
ServerEvent.class.getName()
|
||||||
|
);
|
||||||
|
|
||||||
public ServerEvent(
|
public ServerEvent(
|
||||||
NetworkEndpoint endpoint,
|
NetworkEndpoint endpoint,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user