Subversion Repositories HomeAutomation

Rev

Rev 1603 | Rev 1642 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 1603 Rev 1606
Line 36... Line 36...
36
    {
36
    {
37
        this->server_id_ = net::Manager::Instance()->StartServer(net::PROTOCOL_TCP, port);
37
        this->server_id_ = net::Manager::Instance()->StartServer(net::PROTOCOL_TCP, port);
38
        LOG.Info("Started TCP server on port " + boost::lexical_cast<std::string>(port) + ".");
38
        LOG.Info("Started TCP server on port " + boost::lexical_cast<std::string>(port) + ".");
39
        LOG.Debug("Server id is " + boost::lexical_cast<std::string>(this->server_id_) + ".");
39
        LOG.Debug("Server id is " + boost::lexical_cast<std::string>(this->server_id_) + ".");
40
    }
40
    }
41
    catch (std::exception e)
41
    catch (std::runtime_error& e)
42
    {
42
    {
43
        LOG.Error(e.what());
43
        LOG.Error(e.what());
44
    }
44
    }
45
}
45
}
46
 
46