message handling on receiving
parent
2783f61f7e
commit
131d3d85cb
|
@ -17,13 +17,13 @@ public class KraSocketClientProtocol {
|
||||||
private final ArrayList<Integer> cmdIDs;
|
private final ArrayList<Integer> cmdIDs;
|
||||||
@Getter
|
@Getter
|
||||||
private int currentCmdIDIndex;
|
private int currentCmdIDIndex;
|
||||||
|
@Getter
|
||||||
//@Getter
|
private final HashMap<Integer, Consumer<KraSocketClientProtocolMessage>> consumerHashMap;
|
||||||
//HashMap<Integer, Consumer<KraSocketClientProtocolMessage>> consumerHashMap = new HashMap<>();
|
|
||||||
|
|
||||||
public KraSocketClientProtocol() {
|
public KraSocketClientProtocol() {
|
||||||
this.cmdIDs = new ArrayList<>();
|
this.cmdIDs = new ArrayList<>();
|
||||||
this.currentCmdIDIndex = 10;
|
this.currentCmdIDIndex = 10;
|
||||||
|
this.consumerHashMap = new HashMap<>();
|
||||||
}
|
}
|
||||||
|
|
||||||
public int generateCmdID() {
|
public int generateCmdID() {
|
||||||
|
@ -84,7 +84,6 @@ public class KraSocketClientProtocol {
|
||||||
this.cmdIDs.add(cmdID);
|
this.cmdIDs.add(cmdID);
|
||||||
|
|
||||||
return raw;
|
return raw;
|
||||||
//ProxySystem.getInstance().getSocketClient().SendMessage(raw);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public KraSocketClientProtocolMessage DecodeMessage(byte[] data) {
|
public KraSocketClientProtocolMessage DecodeMessage(byte[] data) {
|
||||||
|
|
Loading…
Reference in New Issue