Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 0
Client
Client ist eine Schnittstelle, dass die Implementierung des Clients im Server Client Modell skizzieren soll.
Jeder Client sollte sich initial beim Server anmelden mit der login() Methode.
Implementierung:
--> de.coer.client.CoerClient Bietet eine standartmäßige Implementierung der Client Schnittstelle und kann als Basis des Server Client Modells verwendet werden.
Methoden:
public void login() throws DatapackageException;
Sends a datapackage to server and try to login Server response a clientID to identify the client
public void logout();
Sends a datapackage to server Server will logout the client
public void send(Datapackage datapackage);
Sends a datapackage to connected server
public void registerMethod(String identifier, Executeable executeable) throws DatapackageException;
Method is used to register new methods the server can send