summaryrefslogtreecommitdiffstats
path: root/src/mad-core.cpp
diff options
context:
space:
mode:
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();