class TextServer extends Thread {

    public void stopServer() {
        stopping = true;
        closeServer();
        closeClient();
        interrupt();
        LOGGER.info("text server stopped");
    }

    public  TextServer(final String hostname, final int serverPort);
    public  TextServer(final int serverPort);

}