Added test classes for the networking and made so that the network engine sends object insted of raw data
This commit is contained in:
parent
a0363aa3d8
commit
16b9f1f265
11 changed files with 161 additions and 53 deletions
|
|
@ -2,9 +2,9 @@ package ei.engine.network.response;
|
|||
|
||||
|
||||
public abstract class ResponseEvent {
|
||||
private byte[] rsp = null;
|
||||
private Object rsp = null;
|
||||
|
||||
public synchronized boolean handleResponse(byte[] rsp) {
|
||||
public synchronized boolean handleResponse(Object rsp) {
|
||||
this.rsp = rsp;
|
||||
notify();
|
||||
return true;
|
||||
|
|
@ -31,5 +31,5 @@ public abstract class ResponseEvent {
|
|||
return (rsp != null);
|
||||
}
|
||||
|
||||
protected abstract void responseEvent(byte[] rsp);
|
||||
protected abstract void responseEvent(Object rsp);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue