Finished fine tuning due to linter output.
[bpdyndnsd] / src / net_helper.cpp
index f826823..0063ca4 100644 (file)
@@ -53,14 +53,14 @@ int NetHelper::open_connection(const string& hostname, const string& port) const
     {
         IPServicePtr->connect(hostname,port);
     }
-    catch ( boost::system::system_error& boost_exception )
+    catch ( const boost::system::system_error& boost_exception )
     {
         ostringstream out;
         out << "NetHelper::open_connection(): " << boost_exception.what() << " Host: " << hostname << " Port: " << port;
         Log->print_network_error(out.str());
         return -1;
     }
-    catch ( exception& e )
+    catch ( const exception& e )
     {
         ostringstream out;
         out << "NetHelper::open_connection(): " << e.what() << " Host: " << hostname << " Port: " << port;
@@ -89,7 +89,7 @@ int NetHelper::send_data(const std::string& data) const
     {
         IPServicePtr->write_to_socket(data);
     }
-    catch ( boost::system::system_error& boost_exception )
+    catch ( const boost::system::system_error& boost_exception )
     {
         ostringstream out;
         out << "NetHelper::send_data(): " << boost_exception.what() << " Data to be send: " << data;
@@ -111,7 +111,7 @@ std::string NetHelper::receive_data() const
     {
         received_data = IPServicePtr->read_from_socket();
     }
-    catch ( boost::system::system_error& boost_exception )
+    catch ( const boost::system::system_error& boost_exception )
     {
         ostringstream out;
         out << "NetHelper::receive_data(): " << boost_exception.what();
@@ -132,7 +132,7 @@ int NetHelper::close_connection() const
     {
         IPServicePtr->close();
     }
-    catch ( boost::system::system_error& boost_exception )
+    catch ( const boost::system::system_error& boost_exception )
     {
         ostringstream out;
         out << "NetHelper::close_connection(): " << boost_exception.what();