summaryrefslogtreecommitdiff
path: root/src/itoserver.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2010-04-27 17:07:55 +0000
committerMike Buland <eichlan@xagasoft.com>2010-04-27 17:07:55 +0000
commit1889b55dcbb3f5c5cccc3bcd986b13d0d108ed6c (patch)
tree3ea239424e33edfc8d9b80aa6b923d944cd0bfa1 /src/itoserver.h
parent801e7de1f85656746d832508baf4583907826420 (diff)
downloadlibbu++-1889b55dcbb3f5c5cccc3bcd986b13d0d108ed6c.tar.gz
libbu++-1889b55dcbb3f5c5cccc3bcd986b13d0d108ed6c.tar.bz2
libbu++-1889b55dcbb3f5c5cccc3bcd986b13d0d108ed6c.tar.xz
libbu++-1889b55dcbb3f5c5cccc3bcd986b13d0d108ed6c.zip
The Bu::Ito thread class has changed the rules on the run function. It no
longer returns anything, that's fine, it's in a class, but it also is protected now. That doesn't really effect child classes much, they can make run public, but I reccomend protected to avoid confusion.
Diffstat (limited to 'src/itoserver.h')
-rw-r--r--src/itoserver.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/itoserver.h b/src/itoserver.h
index 1b45748..c08d453 100644
--- a/src/itoserver.h
+++ b/src/itoserver.h
@@ -69,7 +69,8 @@ namespace Bu
69 virtual void onNewConnection( Client *pClient, int nPort )=0; 69 virtual void onNewConnection( Client *pClient, int nPort )=0;
70 virtual void onClosedConnection( Client *pClient )=0; 70 virtual void onClosedConnection( Client *pClient )=0;
71 71
72 virtual void *run(); 72 protected:
73 virtual void run();
73 74
74 private: 75 private:
75 class SrvClientLink; 76 class SrvClientLink;
@@ -81,11 +82,12 @@ namespace Bu
81 int nTimeoutSec, int nTimeoutUSec ); 82 int nTimeoutSec, int nTimeoutUSec );
82 virtual ~ItoClient(); 83 virtual ~ItoClient();
83 84
84 virtual void *run();
85
86 typedef ItoQueue<Bu::FString *> StringQueue; 85 typedef ItoQueue<Bu::FString *> StringQueue;
87 StringQueue qMsg; 86 StringQueue qMsg;
88 87
88 protected:
89 virtual void run();
90
89 private: 91 private:
90 ItoServer &rSrv; 92 ItoServer &rSrv;
91 Client *pClient; 93 Client *pClient;