Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/netconnection.h')
-rw-r--r--src/core/netconnection.h5
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; }