Subversion Repositories HomeAutomation

Rev

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

Rev 1940 Rev 1954
Line 126... Line 126...
126
    {
126
    {
127
        client_id = net::Manager::Instance()->Connect(net::PROTOCOL_TCP, std::string(*address), args[1]->Uint32Value());
127
        client_id = net::Manager::Instance()->Connect(net::PROTOCOL_TCP, std::string(*address), args[1]->Uint32Value());
128
    }
128
    }
129
    catch (std::runtime_error &e)
129
    catch (std::runtime_error &e)
130
    {
130
    {
-
 
131
      LOG.Error(std::string(__FUNCTION__) + " connect failed!");
131
    }
132
    }
132
 
133
 
133
    return handle_scope.Close(v8::Integer::New(client_id));
134
    return handle_scope.Close(v8::Integer::New(client_id));
134
}
135
}
135
 
136