Class SimpleSocketServer

  • All Implemented Interfaces:
    Runnable
    Direct Known Subclasses:
    SimpleSSLSocketServer

    public class SimpleSocketServer
    extends Thread
    A simple SocketNode based server.
          <b>Usage:</b> java ch.qos.logback.classic.net.SimpleSocketServer port configFile
                         allowedAddress [allowedAddress ...]
     
    where port is a port number where the server listens, configFile is an XML configuration file fed to JoranConfigurator, and each allowedAddress is a client IP or CIDR range that is permitted to connect (e.g. 192.168.1.10 or 192.168.1.0/24). At least one allowed address must be specified on the command line.

    When embedding the server programmatically, allowed client addresses must be registered with addAllowedClientAddress(String) or setAllowedClientAddresses(Collection) before clients can connect. Supported forms are single IPs and CIDR network ranges. An empty whitelist means no clients are allowed.

    Since:
    0.8.4
    Author:
    Ceki Gülcü, Sébastien Pennec