Class TCPIPLinkServer

  • All Implemented Interfaces:
    CSProcess

    public final class TCPIPLinkServer
    extends LinkServer
    Concrete implementation of a LinkServer that listens on a TCP/IP based ServerSocket. For information on LinkServer, see the relevant documentation.

    It is possible for an advanced user to create this object themselves, although it is not recommended. For example:

    TCPIPLinkServer serv = new TCPIPLinkServer(address);
    new ProcessManager(serv).start();

    This is done automatically during Node initialisation. However, if the machine used has multiple interfaces, this can be used to listen on another interface also.

    Author:
    Kevin Chalmers
    See Also:
    LinkServer
    • Constructor Detail

      • TCPIPLinkServer

        public TCPIPLinkServer​(TCPIPNodeAddress address)
                        throws JCSPNetworkException
        Creates a new TCPIPLinkServer listening on the given address
        Parameters:
        address - The address to listen on for new connections
        Throws:
        JCSPNetworkException - Thrown if something goes wrong during the creation of the ServerSocket
    • Method Detail

      • run

        public void run()
        The run method for the TCPIPLinkServer process