Class: | DimCommand | |
---|---|---|
Library: | DIM | |
Author: | C. Gaspar | |
Version: | v1.0 | Update :Thu Feb 11 15:52:46 1999 |
Description :
To be used by DIM Servers - Implements Command
creation.
DimCommand constructors add a DIM Command to
the list of known services.
The DimCommand will only be registered (published)
and served after "Starting" the DimServer.
DimCommands are treated by a command
handler (asynchronously), please
refer to Usage for examples.
Constructors :
Generic
DimCommands can be created as in the following example:
public static void main(String[] args)
{
DimCommand cid = new DimCommand("TestCommand","I")
{
public void commandHandler()
{
System.out.println("Received "+getInt());
}
};
DimServer.start("DelphiServer");
...
}