Class SocketAcceptThread

  • All Implemented Interfaces:
    Runnable

    @Deprecated
    public class SocketAcceptThread
    extends Thread
    Deprecated.
    Old, pre NIO / MINA code. Should not be used as NIO offers better performance
    Implements a network front end with a dedicated thread reading each incoming socket. Blocking and non-blocking modes are supported. By default blocking mode is used. Use the xmpp.socket.blocking system property to change the blocking mode. Restart the server after making changes to the system property.
    Author:
    Gaston Dombiak
    • Constructor Detail

    • Method Detail

      • getPort

        public int getPort()
        Deprecated.
        Retrieve the port this server socket is bound to.
        Returns:
        the port the socket is bound to.
      • getServerPort

        public ServerPort getServerPort()
        Deprecated.
        Returns information about the port on which the server is listening for connections.
        Returns:
        information about the port on which the server is listening for connections.
      • 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.
        Unblock the thread and force it to terminate.
      • run

        public void run()
        Deprecated.
        About as simple as it gets. The thread spins around an accept call getting sockets and handing them to the SocketManager.
        Specified by:
        run in interface Runnable
        Overrides:
        run in class Thread