summaryrefslogtreecommitdiffstats
path: root/src/mad-core.cpp
diff options
context:
space:
mode:
authorMatthias Schiffer <matthias@gamezock.de>2008-06-12 22:51:52 +0200
committerMatthias Schiffer <matthias@gamezock.de>2008-06-12 22:51:52 +0200
commitfb86311df4e1db902cbb6f527ad6c038543973a8 (patch)
treeddf09e4af448c9bf36f2272b656117e71ee6be05 /src/mad-core.cpp
parent09e0fc185219e9e625baf096a68a221be55e0284 (diff)
downloadmad-fb86311df4e1db902cbb6f527ad6c038543973a8.tar
mad-fb86311df4e1db902cbb6f527ad6c038543973a8.zip
Einige Verbesserungen
Diffstat (limited to 'src/mad-core.cpp')
-rw-r--r--src/mad-core.cpp12
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();