Class SocketServerThread

java.lang.Object
java.lang.Thread
com.aoindustries.aoserv.daemon.util.SocketServerThread
All Implemented Interfaces:
Runnable

public abstract class SocketServerThread extends Thread
Handles incoming connections on one ServerSocket.
Author:
AO Industries, Inc.
  • Constructor Details

    • SocketServerThread

      protected SocketServerThread(String name, InetAddress ipAddress, int port)
  • Method Details

    • getIpAddress

      public InetAddress getIpAddress()
    • getPort

      public int getPort()
    • run

      public void run()
      Specified by:
      run in interface Runnable
      Overrides:
      run in class Thread
    • close

      public final void close()
    • socketConnected

      protected abstract void socketConnected(Socket socket) throws IOException
      Throws:
      IOException