Rev 1594 | Rev 1596 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1594 | Rev 1595 | ||
|---|---|---|---|
| Line 59... | Line 59... | ||
| 59 | 59 | ||
| 60 | void Client::ReadHandler(const boost::system::error_code& error, size_t size) |
60 | void Client::ReadHandler(const boost::system::error_code& error, size_t size) |
| 61 | { |
61 | { |
| 62 | if (error) |
62 | if (error) |
| 63 | { |
63 | { |
| 64 |
|
64 | //std::cout << error.message() << std::endl; |
| 65 | } |
65 | } |
| 66 | else if (size == 0) |
66 | else if (size == 0) |
| 67 | { |
67 | { |
| - | 68 | //std::cout << "ReadHandler size 0" << std::endl; |
|
| 68 | this->Disconnect(); |
69 | this->Disconnect(); |
| 69 | } |
70 | } |
| 70 | else |
71 | else |
| 71 | { |
72 | { |
| 72 | this->signal_on_new_data_(this->id_, this->server_id_, this->buffer_); |
73 | this->signal_on_new_data_(this->id_, this->server_id_, this->buffer_); |