From 1291252a7b1317ad2dc13fbeb15f6e9d2d92192c Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Sun, 11 Jan 2009 23:07:44 +0000 Subject: 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. --- src/protocol.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/protocol.cpp') diff --git a/src/protocol.cpp b/src/protocol.cpp index 51ff105..b0efc07 100644 --- a/src/protocol.cpp +++ b/src/protocol.cpp @@ -17,7 +17,19 @@ Bu::Protocol::~Protocol() { } +void Bu::Protocol::onNewConnection( Bu::Client * ) +{ +} + +void Bu::Protocol::onNewData( Bu::Client * ) +{ +} + void Bu::Protocol::onMessage( Bu::Client *, const Bu::FString & ) { } +void Bu::Protocol::onTick( Bu::Client * ) +{ +} + -- cgit v1.2.3