diff options
author | Stijn Buys <ingar@osirion.org> | 2008-02-16 12:22:33 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-02-16 12:22:33 +0000 |
commit | d6ee7ec642cc6b3097c8d321a1a00630e24027d1 (patch) | |
tree | 35f56e5168cc3e12724898b9efb81b4b2938f575 /src/core/netserver.h | |
parent | 715d0c3952a3a1d59b64074e472d0a9a3b414351 (diff) |
initial client-to-server connection
Diffstat (limited to 'src/core/netserver.h')
-rw-r--r-- | src/core/netserver.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/netserver.h b/src/core/netserver.h index 4d1eb73..ab4976d 100644 --- a/src/core/netserver.h +++ b/src/core/netserver.h @@ -37,6 +37,9 @@ public: /// send a message to a client void send(NetClient * client, std::string message); + /// find the client corresponding to a player + NetClient *find_client(Player const &player); + protected: /// called by accept() when a new client connects virtual void client_connect(int const clientfd, std::string const host, int const port); |