Class TCPProxy

java.lang.Object
uk.ac.manchester.spinnaker.proxy.TCPProxy

public class TCPProxy
extends Object
A TCP Proxy server that can re-connect if the target goes down.

Typically called via:

java -jar spinnaker-proxy.jar LOCAL_PORT REMOTE_HOST REMOTE_PORT
Author:
Andrew Rowley
  • Method Details

    • main

      public static void main​(String[] args) throws IOException
      The main method.
      Parameters:
      args - args[0]: The local port to listen on
      args[1]: The remote host to proxy
      args[2]: The remote port to proxy
      Throws:
      IOException - If we can't start the server.
      IllegalArgumentException - If the wrong number of arguments are given.