Posted by Anonymous on Thu 5th Jul 18:40
View followups from Anonymous | download | new post
- public void stop() {
- try {
- if (serverSocket != null) serverSocket.close();
- listening = false;
- ioe.printStackTrace();
- }
- }
- public void run() {
- try {
- log("Starting SOCKS Proxy on:" + serverSocket.getInetAddress().getHostAddress() + ":"
- + serverSocket.getLocalPort());
- while (listening) {
- log("Accepted from: " + s.getInetAddress().getHostName() + ": " + s.getPort());
- log("Accepted by: " + serverSocket.getInetAddress().getHostName() + ": " + serverSocket.getLocalPort());
- ProxyServerConnection ps = new ProxyServerConnection(auth, s, currentProxy());
- if (listeners.size() > 0) {
- notifyListeners();
- }
- }
- ioe.printStackTrace();
- }
- }
- }).start();
- }
Submit a correction or amendment below. (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.