Add: Session interface all sessions need to conform to
This commit is contained in:
@@ -0,0 +1,13 @@
|
|||||||
|
package ch.unibas.dmi.dbis.cs108.casono.common.network;
|
||||||
|
|
||||||
|
public interface Session {
|
||||||
|
/**
|
||||||
|
* Outlines an interface all session implementations have to conform to
|
||||||
|
*/
|
||||||
|
|
||||||
|
SessionId id();
|
||||||
|
|
||||||
|
void send(byte[] payload);
|
||||||
|
|
||||||
|
void close();
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user