com.eshore.socketapi.client.Test2 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proxy-suite Show documentation
Show all versions of proxy-suite Show documentation
a Intranet-through project
package com.eshore.socketapi.client;
import java.io.IOException;
import com.eshore.socketapi.server.GlobWorker;
import com.eshore.socketapi.server.InnerServer;
import com.eshore.socketapi.server.OutServer;
public class Test2 {
public static void main(String[] args) throws IOException {
// TODO Auto-generated method stub
//HttpURLConnection hu;
//Socket ss= new Socket("14.215.177.38",443);
GlobWorker gw = new GlobWorker();
//InnerServer iserver = new InnerServer(4100,gw);
//new OutServer("default", "blog.sina.com.cn",80,4200, gw) ;
//new OutServer("default", "eshore.cn",80,4400, gw) ;
//new OutServer("default", "blog.sina.com.cn",80,4300, gw) ;
//new OutServer("default", "192.168.199.170",80,4300, gw) ;
ProxyClient client = new ProxyClient("127.0.01",4100,gw);
new Thread(){
public void run(){
while(true){
try {
Thread.sleep(10000);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
}
}.start();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy