diff options
author | Mike Buland <eichlan@xagasoft.com> | 2006-11-02 11:29:19 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2006-11-02 11:29:19 +0000 |
commit | 80153a5bb5d3b41101e6bd6755b61fd0e57fadbc (patch) | |
tree | 6a2989723396348d509b63466bf53023f4f82739 /src/protocol.h | |
parent | 54ef2750aef0c64df56daff50af7719f85017c33 (diff) | |
download | libbu++-80153a5bb5d3b41101e6bd6755b61fd0e57fadbc.tar.gz libbu++-80153a5bb5d3b41101e6bd6755b61fd0e57fadbc.tar.bz2 libbu++-80153a5bb5d3b41101e6bd6755b61fd0e57fadbc.tar.xz libbu++-80153a5bb5d3b41101e6bd6755b61fd0e57fadbc.zip |
Added the new features that you need to make the connection manager, protocols,
and the connection monitor work in two-way-mode. Effectively you should be able
to write systems that both serve and initiate connections, and only write one
protocol.
Diffstat (limited to '')
-rw-r--r-- | src/protocol.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/protocol.h b/src/protocol.h index cd18e37..09e1c98 100644 --- a/src/protocol.h +++ b/src/protocol.h | |||
@@ -36,6 +36,10 @@ public: | |||
36 | */ | 36 | */ |
37 | virtual bool onNewConnection()=0; | 37 | virtual bool onNewConnection()=0; |
38 | 38 | ||
39 | virtual void onNewClientConnection(){}; | ||
40 | |||
41 | virtual void poll(){}; | ||
42 | |||
39 | /** | 43 | /** |
40 | * Sets the Protocol's Connection object. This is rather important, and | 44 | * Sets the Protocol's Connection object. This is rather important, and |
41 | * handled usually by the ConnectionManager. | 45 | * handled usually by the ConnectionManager. |