Class semper.SemperClient.SCDaemon
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.SemperClient.SCDaemon

java.lang.Object
   |
   +----java.lang.Thread
           |
           +----semper.SemperClient.SCDaemon

public class SCDaemon
extends Thread
implements SCTaskControl
SCDaemon implements a handler for client-server connection requests
Author:
Kostas Tzelepis, Petros Pantis

Variable Index

 o clientsocket

Constructor Index

 o SCDaemon(ServerSocket, SCTimer)
SCDaemon object constructor

Method Index

 o GetFlags()
 o GetID()
 o GetObj()
 o GetStatus()
 o Handler(Object)
 o Notify()
 o run()
This method blocks until a new connection request is arived.
 o SetID(int)
 o SetPriority(int)
 o SetStatus()
 o Stop()

Variables

 o clientsocket
  public Socket clientsocket

Constructors

 o SCDaemon
  public SCDaemon(ServerSocket sock,
                  SCTimer mo)
SCDaemon object constructor
Parameters:
sock - the ServerSocket object
mo - the Monitor Timer object

Methods

 o run
  public void run()
This method blocks until a new connection request is arived. After that the socket object will be returned to the SCTimer
Overrides:
run in class Thread
See Also:
WakeUp
 o Notify
  public void Notify()
 o GetFlags
  public int GetFlags()
 o SetPriority
  public void SetPriority(int prio)
 o SetID
  public void SetID(int id)
 o GetID
  public int GetID()
 o Stop
  public void Stop()
 o Handler
  public void Handler(Object pObj)
 o GetStatus
  public int GetStatus()
 o SetStatus
  public void SetStatus()
 o GetObj
  public Object GetObj()

All Packages  Class Hierarchy  This Package  Previous  Next  Index