{
IPServicePtr->connect(hostname,port);
}
- catch ( boost::system::system_error boost_exception )
+ catch ( boost::system::system_error& boost_exception )
{
ostringstream out;
out << "NetHelper::open_connection(): " << boost_exception.what() << " Host: " << hostname << " Port: " << port;
{
IPServicePtr->write_to_socket(data);
}
- catch ( boost::system::system_error boost_exception )
+ catch ( boost::system::system_error& boost_exception )
{
ostringstream out;
out << "NetHelper::send_data(): " << boost_exception.what() << " Data to be send: " << data;
{
received_data = IPServicePtr->read_from_socket();
}
- catch ( boost::system::system_error boost_exception )
+ catch ( boost::system::system_error& boost_exception )
{
ostringstream out;
out << "NetHelper::receive_data(): " << boost_exception.what();
{
IPServicePtr->close();
}
- catch ( boost::system::system_error boost_exception )
+ catch ( boost::system::system_error& boost_exception )
{
ostringstream out;
out << "NetHelper::close_connection(): " << boost_exception.what();
{
pw_md5_hex = Util::compute_md5_digest(get_password());
}
- catch ( invalid_argument e )
+ catch ( invalid_argument& e )
{
get_logger()->print_exception_md5_sum(e.what());
return -1;
{
secret = Util::compute_md5_digest(pw_md5_hex);
}
- catch ( invalid_argument e )
+ catch ( invalid_argument& e )
{
get_logger()->print_exception_md5_sum(e.what());
return -1;