diff options
Diffstat (limited to 'src/server.h')
-rw-r--r-- | src/server.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/server.h b/src/server.h index 42cbb6a..55de081 100644 --- a/src/server.h +++ b/src/server.h | |||
@@ -58,6 +58,9 @@ namespace Bu | |||
58 | 58 | ||
59 | void addClient( int nSocket, int nPort ); | 59 | void addClient( int nSocket, int nPort ); |
60 | 60 | ||
61 | void setAutoTick( bool bEnable=true ); | ||
62 | void tick(); | ||
63 | |||
61 | virtual void onNewConnection( Client *pClient, int nPort )=0; | 64 | virtual void onNewConnection( Client *pClient, int nPort )=0; |
62 | virtual void onClosedConnection( Client *pClient )=0; | 65 | virtual void onClosedConnection( Client *pClient )=0; |
63 | 66 | ||
@@ -90,6 +93,7 @@ namespace Bu | |||
90 | SrvHash hServers; | 93 | SrvHash hServers; |
91 | typedef Hash<int,Client *> ClientHash; | 94 | typedef Hash<int,Client *> ClientHash; |
92 | ClientHash hClients; | 95 | ClientHash hClients; |
96 | bool bAutoTick; | ||
93 | }; | 97 | }; |
94 | } | 98 | } |
95 | 99 | ||