diff options
| author | Paul Buetow <paul@buetow.org> | 2008-05-26 18:53:39 +0000 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2008-05-26 18:53:39 +0000 |
| commit | 96001873c9ffb6b3ff8866937eb39b8085032705 (patch) | |
| tree | 2324a48e8087e481c48a566e5613a1b22e1227f1 /sources/protocols/implementations/PingPongProtocol.java | |
| parent | 5b50abee94e410586ae92f81e41e4afd5a6fc71c (diff) | |
VSMessage constructor does not requier the protocol's classname anymore.
Diffstat (limited to 'sources/protocols/implementations/PingPongProtocol.java')
| -rw-r--r-- | sources/protocols/implementations/PingPongProtocol.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sources/protocols/implementations/PingPongProtocol.java b/sources/protocols/implementations/PingPongProtocol.java index 0058934..543b8df 100644 --- a/sources/protocols/implementations/PingPongProtocol.java +++ b/sources/protocols/implementations/PingPongProtocol.java @@ -44,7 +44,7 @@ public class PingPongProtocol extends VSProtocol { * @see protocols.VSProtocol#onClientStart() */ protected void onClientStart() { - VSMessage message = new VSMessage(getClassname()); + VSMessage message = new VSMessage(); message.setBoolean("fromClient", true); message.setInteger("counter", ++clientCounter); sendMessage(message); @@ -59,7 +59,7 @@ public class PingPongProtocol extends VSProtocol { logg("message: " + recvMessage.getInteger("counter")); - VSMessage message = new VSMessage(getClassname()); + VSMessage message = new VSMessage(); message.setBoolean("fromClient", true); message.setInteger("counter", ++clientCounter); sendMessage(message); @@ -81,7 +81,7 @@ public class PingPongProtocol extends VSProtocol { logg("message: " + recvMessage.getInteger("counter")); - VSMessage message = new VSMessage(getClassname()); + VSMessage message = new VSMessage(); message.setBoolean("fromServer", true); message.setInteger("counter", ++serverCounter); sendMessage(message); |
