Class SocketListener

java.lang.Object
java.lang.Thread
FAtiMA.Core.util.parsers.SocketListener
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
RemoteAgent

public abstract class SocketListener extends Thread
  • Field Details

    • maxSize

      protected int maxSize
    • socket

      protected Socket socket
    • stopped

      protected boolean stopped
  • Constructor Details

    • SocketListener

      public SocketListener()
    • SocketListener

      public SocketListener(Socket socket)
      Creates new SocketListener
  • Method Details

    • initializeSocket

      public void initializeSocket()
    • close

      public void close()
    • processMessage

      public abstract void processMessage(String msg) throws IOException
      Throws:
      IOException
    • handleSocketException

      public abstract void handleSocketException()
    • run

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

      public boolean isStopped()