summaryrefslogtreecommitdiff
path: root/sources/protocols/implementations/PingPongProtocol.java
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2008-05-26 18:53:39 +0000
committerPaul Buetow <paul@buetow.org>2008-05-26 18:53:39 +0000
commit96001873c9ffb6b3ff8866937eb39b8085032705 (patch)
tree2324a48e8087e481c48a566e5613a1b22e1227f1 /sources/protocols/implementations/PingPongProtocol.java
parent5b50abee94e410586ae92f81e41e4afd5a6fc71c (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.java6
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);