Class AbstractThreadedSocketServer

java.lang.Object
de.calamanari.pk.util.AbstractConsoleServer
de.calamanari.pk.util.AbstractThreadedSocketServer
Direct Known Subclasses:
EchoServer, SecuMangaServerMock

public abstract class AbstractThreadedSocketServer
extends AbstractConsoleServer
Abstract Threaded Socket server
This is a threaded socket server, it can accept and process an arbitrary number of connections concurrently.
A subclass only has to implement the concrete communication operations, the other stuff is handled by logic in the super classes (TEMPLATE METHOD pattern).
Author:
Karl Eilebrecht
  • Constructor Details

    • AbstractThreadedSocketServer

      public AbstractThreadedSocketServer​(java.lang.String serverName)
      Creates new mock without starting it yet.
      Parameters:
      serverName - name of the new server