From 3a3ba622dbf9c035b0f26979601b2d4d192b4167 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 13 Jul 2008 16:37:18 +0000 Subject: connection sequence updates, breaks network protocol --- src/core/netconnection.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/core/netconnection.h') diff --git a/src/core/netconnection.h b/src/core/netconnection.h index ddc70f0..a2e9f2f 100644 --- a/src/core/netconnection.h +++ b/src/core/netconnection.h @@ -52,6 +52,9 @@ public: /// buffer outgoing data void send(std::string const &msg); + /// sennd a player info message + void send_playerinfo(); + /// send bufered outgoing data void transmit(); @@ -71,7 +74,7 @@ public: inline bool connected() const { return ((connection_fd != -1) && !connection_error); } - enum State {Connecting=0, Connected=1}; + enum State {Connecting=0, Pending=1, Connected=2}; inline State state() const { return connection_state; } -- cgit v1.2.3