Class BlockingAcceptingMode


  • @Deprecated
    public class BlockingAcceptingMode
    extends Object
    Deprecated.
    Old, pre NIO / MINA code. Should not be used as NIO offers better performance
    Accepts new socket connections and uses a thread for each new connection.
    Author:
    Gaston Dombiak
    • Field Detail

      • notTerminated

        protected boolean notTerminated
        Deprecated.
        True while this thread should continue running.
      • serverSocket

        protected ServerSocket serverSocket
        Deprecated.
        socket that listens for connections.
      • directTLS

        protected final boolean directTLS
        Deprecated.
        true if data is to be encrypted directly (as opposed to StartTLS).
    • Constructor Detail

      • BlockingAcceptingMode

        protected BlockingAcceptingMode​(int tcpPort,
                                        InetAddress bindInterface,
                                        boolean directTLS)
                                 throws IOException
        Deprecated.
        Throws:
        IOException
    • Method Detail

      • run

        public void run()
        Deprecated.
        About as simple as it gets. The thread spins around an accept call getting sockets and creating new reading threads for each new connection.
      • getLastReader

        public SocketReader getLastReader()
        Deprecated.
        The last socket reader that was created (if any). This is intended to be used for unit testing purposes only.
      • isDirectTLS

        public boolean isDirectTLS()
        Deprecated.
        Returns if the port expects sockets to be encrypted immediately (direct TLS).
        Returns:
        true when direct TLS is expected, otherwise false.
      • shutdown

        public void shutdown()
        Deprecated.