Package cmion.util

Class SocketListener

java.lang.Object
java.lang.Thread
cmion.util.SocketListener
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
FAtiMAListenerThread

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(Socket socket)
      Creates new SocketListener
  • Method Details

    • initialize

      public void initialize()
    • close

      public void close()
    • processMessage

      protected abstract void processMessage(String msg)
    • run

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

      public boolean send(String msg)