From 9d39702824e8fae5127e09fb5a05b521b48cd028 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 9 Nov 2008 11:43:28 +0000 Subject: docking menus --- src/core/netclient.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/core/netclient.h') diff --git a/src/core/netclient.h b/src/core/netclient.h index 6e5bcf9..c0cdf8d 100644 --- a/src/core/netclient.h +++ b/src/core/netclient.h @@ -43,7 +43,7 @@ namespace core class NetClient { public: - NetClient(std::string host, int port); + NetClient(std::string host, int port, int fd); ~NetClient(); /// the remote hostname the client is connected to @@ -68,7 +68,7 @@ public: void retreive(std::string & message); /// transmit messages in the send queue to the remote client - void transmit(int serverfd); + void transmit(); inline bool error() const { return client_error; } @@ -84,9 +84,12 @@ public: float client_keepalive; private: + inline int fd() const { return client_fd; } + struct sockaddr_in client_addr; std::string client_host; int client_port; + int client_fd; bool client_error; NetPlayer *client_player; -- cgit v1.2.3