diff options
author | Matthias Schiffer <matthias@gamezock.de> | 2008-07-01 03:24:58 +0200 |
---|---|---|
committer | Matthias Schiffer <matthias@gamezock.de> | 2008-07-01 03:24:58 +0200 |
commit | 7601149f476c1aa3dae6cd55027a36b62efabf12 (patch) | |
tree | 947a8ebeaebaf6a366a0490975e5fa2fa689db9c /src/mad-core.cpp | |
parent | 7be6ee9c1cd2c2c5172ad4a094b67c25d6c5b72c (diff) | |
download | mad-7601149f476c1aa3dae6cd55027a36b62efabf12.tar mad-7601149f476c1aa3dae6cd55027a36b62efabf12.zip |
RequestManager hinzugef?gt
Diffstat (limited to 'src/mad-core.cpp')
-rw-r--r-- | src/mad-core.cpp | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/src/mad-core.cpp b/src/mad-core.cpp index 36e889b..525eb88 100644 --- a/src/mad-core.cpp +++ b/src/mad-core.cpp @@ -23,21 +23,23 @@ int main() { sigset_t signals; - + sigemptyset(&signals); sigaddset(&signals, SIGPIPE); sigprocmask(SIG_BLOCK, &signals, 0); - + Mad::Net::Connection::init(); - - Mad::Core::ConnectionManager connectionManager; - + + Mad::Core::ConnectionManager *connectionManager = new Mad::Core::ConnectionManager; + while(true) { - if(connectionManager.wait(10000)) - connectionManager.run(); + if(connectionManager->wait(10000)) + connectionManager->run(); } - + + delete connectionManager; + Mad::Net::Connection::deinit(); - + return 0; } |