Subversion Repositories HomeAutomation

Rev

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

Rev 1947 Rev 1950
Line 21... Line 21...
21
#include "Mbb.h"
21
#include "Mbb.h"
22
 
22
 
23
#include <boost/lexical_cast.hpp>
23
#include <boost/lexical_cast.hpp>
24
#include <boost/algorithm/string/trim.hpp>
24
#include <boost/algorithm/string/trim.hpp>
25
#include <boost/algorithm/string/split.hpp>
25
#include <boost/algorithm/string/split.hpp>
-
 
26
#include <time.h>
26
 
27
 
27
#include "net/Manager.h"
28
#include "net/Manager.h"
28
#include "vm/Manager.h"
29
#include "vm/Manager.h"
29
#include "common/common.h"
30
#include "common/common.h"
30
#include "common/log.h"
31
#include "common/log.h"
Line 103... Line 104...
103
void Mbb::SlotOnNewDataHandler(net::ClientId client_id, net::ServerId server_id, common::Byteset data)
104
void Mbb::SlotOnNewDataHandler(net::ClientId client_id, net::ServerId server_id, common::Byteset data)
104
{
105
{
105
  ATOM_VM_PLUGIN_SCOPE;
106
  ATOM_VM_PLUGIN_SCOPE;
106
 
107
 
107
  //atom::log::Debug(log_module_, "%s called!", __FUNCTION__);
108
  //atom::log::Debug(log_module_, "%s called!", __FUNCTION__);
-
 
109
  //clock_t tStart = clock();
108
 
110
 
109
  try
111
  try
110
  {
112
  {
111
    ArgumentListPointer call_arguments = ArgumentListPointer(new ArgumentList);
113
    ArgumentListPointer call_arguments = ArgumentListPointer(new ArgumentList);
112
   
114
   
Line 128... Line 130...
128
  }
130
  }
129
  catch (std::exception& exception)
131
  catch (std::exception& exception)
130
  {
132
  {
131
    atom::log::Exception(log_module_, exception);
133
    atom::log::Exception(log_module_, exception);
132
  }
134
  }
-
 
135
 
-
 
136
  //atom::log::Info(log_module_, "Time taken: %.2fs", (double)(clock() - tStart)/CLOCKS_PER_SEC);
133
}
137
}
134
 
138
 
135
void Mbb::SlotOnNewStateHandler(net::ClientId client_id, net::ServerId server_id, net::ClientState client_state)
139
void Mbb::SlotOnNewStateHandler(net::ClientId client_id, net::ServerId server_id, net::ClientState client_state)
136
{
140
{
137
  ATOM_VM_PLUGIN_SCOPE;
141
  ATOM_VM_PLUGIN_SCOPE;