diff options
Diffstat (limited to 'sources/protocols/PingPongProtocol.java')
| -rw-r--r-- | sources/protocols/PingPongProtocol.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sources/protocols/PingPongProtocol.java b/sources/protocols/PingPongProtocol.java index 6244b9a..ee54a3c 100644 --- a/sources/protocols/PingPongProtocol.java +++ b/sources/protocols/PingPongProtocol.java @@ -7,7 +7,7 @@ public class PingPongProtocol extends VSProtocol { private int clientCounter; private int serverCounter; - public PingPongProtocol() { + protected void onInit() { setProtocolClassname(getClass().toString()); } @@ -16,7 +16,6 @@ public class PingPongProtocol extends VSProtocol { } protected void onClientStart() { - VSMessage message = new VSMessage(getProtocolClassname()); message.setBoolean("fromClient", true); message.setInteger("counter", ++clientCounter); |
