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 49... Line 49...
49
    this->ExportFunction("ConsoleExport_LogToClient",          Console::Export_LogToClient);
49
    this->ExportFunction("ConsoleExport_LogToClient",          Console::Export_LogToClient);
50
    this->ExportFunction("ConsoleExport_DisconnectClient",     Console::Export_DisconnectClient);
50
    this->ExportFunction("ConsoleExport_DisconnectClient",     Console::Export_DisconnectClient);
51
   
51
   
52
    try
52
    try
53
    {
53
    {
54
        this->server_id_ = net::Manager::Instance()->StartServer(net::PROTOCOL_TCP, port);
54
        this->server_id_ = net::Manager::Instance()->StartServer(net::TRANSPORT_PROTOCOL_TCP, port);
55
        LOG.Info("Started TCP server on port " + boost::lexical_cast<std::string>(port) + ".");
55
        LOG.Info("Started TCP server on port " + boost::lexical_cast<std::string>(port) + ".");
56
        LOG.Debug("Server id is " + boost::lexical_cast<std::string>(this->server_id_) + ".");
56
        LOG.Debug("Server id is " + boost::lexical_cast<std::string>(this->server_id_) + ".");
57
    }
57
    }
58
    catch (std::runtime_error& e)
58
    catch (std::runtime_error& e)
59
    {
59
    {