diff options
author | Stijn Buys <ingar@osirion.org> | 2008-07-13 16:37:18 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-07-13 16:37:18 +0000 |
commit | 3a3ba622dbf9c035b0f26979601b2d4d192b4167 (patch) | |
tree | 1439700a9df9ba1dd32ae1f7ca86c5caa0fd4d1c /src/core/netconnection.h | |
parent | 2e789cb9894ac5a9565013b134f1c1e51174f430 (diff) |
connection sequence updates, breaks network protocol
Diffstat (limited to 'src/core/netconnection.h')
-rw-r--r-- | src/core/netconnection.h | 5 |
1 files changed, 4 insertions, 1 deletions
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; } |