Class semper.comm.ComManager
All Packages Class Hierarchy This Package Previous Next Index
Class semper.comm.ComManager
java.lang.Object
|
+----semper.comm.ComManager
- public class ComManager
- extends Object
- implements ComPointConstants
Provides class methods for creating ComPoints, where the
ComPoint class is tranparently selected based on the'
address protocol field. This class should not be
instanciated.
- Version:
- beta-4, 12.8.96
- Author:
- Mehdi Nassehi
-
ComManager()
-
-
comPoint(int, ComPointAddress)
- Creats an initiator or a server ComPoint.
-
init()
- Initializes the module.
-
isInitialized()
- Check whether the module is initialized.
ComManager
public ComManager()
init
public static void init() throws ComPointException
- Initializes the module.
- Throws: ComPointException
- if error while opening socket.
isInitialized
public static boolean isInitialized()
- Check whether the module is initialized.
- Returns:
- true if and only if fully initialized;
comPoint
public static ComPoint comPoint(int type,
ComPointAddress address) throws ComPointException
- Creats an initiator or a server ComPoint. ComManager class must be
already initialized.
- Parameters:
- type - type of ComPoint to be created; only Initiator and
Server allowed.
The possible values for type are sepcified in ComPointConstants by
constants with prefix COMPOINT_.
- address - in the case of the Initiator ComPoint, the remote address
and, in the case of the Server ComPoint, the local address.
- Throws: ComPointException
- Error when invoking the
protocol-specific ComPoint constructor or address is null or
ComManager class is not initialized.
All Packages Class Hierarchy This Package Previous Next Index