From d6ee7ec642cc6b3097c8d321a1a00630e24027d1 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 16 Feb 2008 12:22:33 +0000 Subject: initial client-to-server connection --- src/core/netserver.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/core/netserver.h') 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); -- cgit v1.2.3