aboutsummaryrefslogtreecommitdiff
path: root/src/protocol.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2009-01-11 23:07:44 +0000
committerMike Buland <eichlan@xagasoft.com>2009-01-11 23:07:44 +0000
commit1291252a7b1317ad2dc13fbeb15f6e9d2d92192c (patch)
tree5eb88c7cef5417c043b03b34a77334c57286e526 /src/protocol.h
parent595afe519791894c77c77a949fba7732f4d94872 (diff)
downloadlibbu++-1291252a7b1317ad2dc13fbeb15f6e9d2d92192c.tar.gz
libbu++-1291252a7b1317ad2dc13fbeb15f6e9d2d92192c.tar.bz2
libbu++-1291252a7b1317ad2dc13fbeb15f6e9d2d92192c.tar.xz
libbu++-1291252a7b1317ad2dc13fbeb15f6e9d2d92192c.zip
A new feature has been added to Bu::Server. It's going to be trickier to
implement in Bu::ItoServer, but I'll get to it. Basically you can trigger a "tick" any time you want and it will propegate as an onTick event to all active clients. You can also have these generated automatically everytime the system passes through a polling cycle. In this case, you should never ever write data to the socket every tick. It will cause your program to go bursurk.
Diffstat (limited to 'src/protocol.h')
-rw-r--r--src/protocol.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/protocol.h b/src/protocol.h
index 2c84bfd..64e5ca7 100644
--- a/src/protocol.h
+++ b/src/protocol.h
@@ -26,9 +26,10 @@ namespace Bu
26 Protocol(); 26 Protocol();
27 virtual ~Protocol(); 27 virtual ~Protocol();
28 28
29 virtual void onNewConnection( Bu::Client *pClient )=0; 29 virtual void onNewConnection( Bu::Client *pClient );
30 virtual void onNewData( Bu::Client *pClient )=0; 30 virtual void onNewData( Bu::Client *pClient );
31 virtual void onMessage( Bu::Client *pClient, const Bu::FString &sMsg ); 31 virtual void onMessage( Bu::Client *pClient, const Bu::FString &sMsg );
32 virtual void onTick( Bu::Client *pClient );
32 33
33 private: 34 private:
34 35