KLALB UDP TEST

This commit is contained in:
Administrator
2024-01-30 16:54:09 +08:00
parent 722ab9710f
commit b4fccf3a03
67 changed files with 1977 additions and 929 deletions
@@ -9,12 +9,12 @@ import java.nio.channels.SocketChannel;
public class NatholeTestS {
public static void main(String[] args) throws IOException {
for (int i1 = 1024; i1 < 65536; i1++) {
for (int i1 = 1024; i1 < 32768; i1++) {
try {
SocketChannel sc= SocketChannel.open();
sc.configureBlocking(false) ;
sc.bind(new InetSocketAddress("0.0.0.0", i1));
sc.connect(new InetSocketAddress("10.235.16.1",10300));
sc.connect(new InetSocketAddress("183.199.49.116",21000));
sc.close();
int i2=i1;
new Thread(()->{