Subversion Repositories HomeAutomation

Rev

Rev 1987 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 1987 Rev 1989
Line 32... Line 32...
32
   
32
   
33
Monitor::Monitor(unsigned int port): broker::Subscriber(port), LOG("can::Monitor")
33
Monitor::Monitor(unsigned int port): broker::Subscriber(port), LOG("can::Monitor")
34
{
34
{
35
    try
35
    try
36
    {
36
    {
37
        this->server_id_ = net::Manager::Instance()->StartServer(net::PROTOCOL_TCP, port);
37
        this->server_id_ = net::Manager::Instance()->StartServer(net::TRANSPORT_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::runtime_error& e)
41
    catch (std::runtime_error& e)
42
    {
42
    {