Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-11-09 11:43:28 +0000
committerStijn Buys <ingar@osirion.org>2008-11-09 11:43:28 +0000
commit9d39702824e8fae5127e09fb5a05b521b48cd028 (patch)
treea56fdfc6e85a2405461be22bc80e43b33c8b8b48 /src/core/netclient.h
parent6cd1a38f1d3a0a45846d63a75475400372af1277 (diff)
docking menus
Diffstat (limited to 'src/core/netclient.h')
-rw-r--r--src/core/netclient.h7
1 files changed, 5 insertions, 2 deletions
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;