Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/tcpclient.h')
-rw-r--r--src/net/tcpclient.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/net/tcpclient.h b/src/net/tcpclient.h
index 0fcb4b6..943531e 100644
--- a/src/net/tcpclient.h
+++ b/src/net/tcpclient.h
@@ -39,15 +39,15 @@ public:
void abort();
/// Sends outgoing data
- void send(std::string const &msg);
-
+ virtual void send(std::string const &msg);
+
+ /// receives incoming data
+ virtual void receive(std::string &msg);
+
+protected:
/// Called by receive() when the client has disconnected
/// @see receive
- virtual void disconnect();
-
-protected:
- /// receives incoming data
- void receive(std::string &msg);
+ virtual void client_disconnect();
private:
int tcpclient_fd;