Subversion Repositories HomeAutomation

Rev

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

Rev 1987 Rev 1989
Line 33... Line 33...
33
   
33
   
34
CanDaemon::CanDaemon(unsigned int port): broker::Subscriber(port), LOG("can::CanDaemon")
34
CanDaemon::CanDaemon(unsigned int port): broker::Subscriber(port), LOG("can::CanDaemon")
35
{
35
{
36
    try
36
    try
37
    {
37
    {
38
        this->server_id_ = net::Manager::Instance()->StartServer(net::PROTOCOL_TCP, port);
38
        this->server_id_ = net::Manager::Instance()->StartServer(net::TRANSPORT_PROTOCOL_TCP, port);
39
        LOG.Info("Started TCP server on port " + boost::lexical_cast<std::string>(port) + ".");
39
        LOG.Info("Started TCP server on port " + boost::lexical_cast<std::string>(port) + ".");
40
        LOG.Debug("Server id is " + boost::lexical_cast<std::string>(this->server_id_) + ".");
40
        LOG.Debug("Server id is " + boost::lexical_cast<std::string>(this->server_id_) + ".");
41
    }
41
    }
42
    catch (std::runtime_error& e)
42
    catch (std::runtime_error& e)
43
    {
43
    {