diff options
author | Stijn Buys <ingar@osirion.org> | 2008-11-08 16:51:28 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-11-08 16:51:28 +0000 |
commit | 6cd1a38f1d3a0a45846d63a75475400372af1277 (patch) | |
tree | 35bc79e34fe727fc387103a183f80b203c6dfa12 /src/core/netserver.h | |
parent | 731dfb8f3ca9c34e4160021cb221c3056c00dbf9 (diff) |
moved message functions into Player class
Diffstat (limited to 'src/core/netserver.h')
-rw-r--r-- | src/core/netserver.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/core/netserver.h b/src/core/netserver.h index 8877707..647368e 100644 --- a/src/core/netserver.h +++ b/src/core/netserver.h @@ -58,12 +58,6 @@ public: /// receive data from clients void receive(); - /// broadcast a message - void broadcast_message(const char *channel, std::string const & message, Player *ignore_player=0); - - /// send a message to a client - void send_message(NetClient *client, const char *channel, std::string const & message); - /// disconnect a client void send_disconnect(NetClient *client); @@ -71,6 +65,9 @@ public: NetClient *find_client(Player const *player); protected: + /// send a message + void send_message(NetClient *client, const char *channel, std::string const & message); + /// send a server frame marker void send_frame_marker(NetClient *client, unsigned long timestamp); |