diff options
author | Matthias Schiffer <matthias@gamezock.de> | 2008-06-12 22:51:52 +0200 |
---|---|---|
committer | Matthias Schiffer <matthias@gamezock.de> | 2008-06-12 22:51:52 +0200 |
commit | fb86311df4e1db902cbb6f527ad6c038543973a8 (patch) | |
tree | ddf09e4af448c9bf36f2272b656117e71ee6be05 /src/mad-core.cpp | |
parent | 09e0fc185219e9e625baf096a68a221be55e0284 (diff) | |
download | mad-fb86311df4e1db902cbb6f527ad6c038543973a8.tar mad-fb86311df4e1db902cbb6f527ad6c038543973a8.zip |
Einige Verbesserungen
Diffstat (limited to 'src/mad-core.cpp')
-rw-r--r-- | src/mad-core.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/mad-core.cpp b/src/mad-core.cpp index 219621f..76e7b9a 100644 --- a/src/mad-core.cpp +++ b/src/mad-core.cpp @@ -35,11 +35,13 @@ int main() { connection.signalRecieve().connect(sigc::ptr_fun(recieveHandler)); - connection.loadDHParams("dh.pem"); - - connection.listen(Mad::Net::IPAddress("0.0.0.0", 6666)); - - while(!connection.recieve()); + try { + connection.listen(Mad::Net::IPAddress("0.0.0.0", 6666)); + while(!connection.recieve()); + } + catch(Mad::Net::Exception &e) { + std::cerr << "Connection error: " << e.what() << std::endl; + } connection.disconnect(); |