Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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;