Subversion Repositories HomeAutomation

Rev

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

Rev 1642 Rev 1959
Line 35... Line 35...
35
 
35
 
36
Subscriber::~Subscriber()
36
Subscriber::~Subscriber()
37
{
37
{
38
}
38
}
39
 
39
 
40
void Subscriber::SlotOnNewData(ClientId client_id, ServerId server_id, common::Byteset data)
40
void Subscriber::SlotOnNewData(SocketId client_id, SocketId server_id, common::Byteset data)
41
{
41
{
42
    common::Byteset temp_buffer(data);
42
    common::Byteset temp_buffer(data);
43
    this->io_service_.post(boost::bind(&Subscriber::SlotOnNewDataHandler, this, client_id, server_id, temp_buffer));
43
    this->io_service_.post(boost::bind(&Subscriber::SlotOnNewDataHandler, this, client_id, server_id, temp_buffer));
44
}
44
}
45
 
45
 
46
void Subscriber::SlotOnNewState(ClientId client_id, ServerId server_id, ClientState client_state)
46
void Subscriber::SlotOnNewState(SocketId client_id, SocketId server_id, ClientState client_state)
47
{
47
{
48
    this->io_service_.post(boost::bind(&Subscriber::SlotOnNewStateHandler, this, client_id, server_id, client_state));
48
    this->io_service_.post(boost::bind(&Subscriber::SlotOnNewStateHandler, this, client_id, server_id, client_state));
49
}
49
}
50
 
50
 
51
}; // namespace net
51
}; // namespace net