(a)
public class TCPMapper extends ConcurrentServer
(b)
public void handleSession(Socket socketFromClient)
(c)
socketToServer = new Socket(proxyHost, proxyPort);
Figure 7: (a) Extending a base class called ConcurrentServer; (b) declaring a method called handleSession() in the TCPMapper class; (c) setting up another connection.
Back to Article