Rev 1596 | Rev 1599 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1596 | Rev 1597 | ||
|---|---|---|---|
| Line 115... | Line 115... | ||
| 115 | if (this->acceptor_.use_count() != 0) |
115 | if (this->acceptor_.use_count() != 0) |
| 116 | { |
116 | { |
| 117 | return; |
117 | return; |
| 118 | } |
118 | } |
| 119 | 119 | ||
| 120 |
|
120 | try |
| 121 | { |
121 | { |
| - | 122 | if (this->socket_.is_open()) |
|
| - | 123 | { |
|
| 122 | this->socket_.send(boost::asio::buffer(data.Get(), data.GetMaxSize())); |
124 | this->socket_.send(boost::asio::buffer(data.Get(), data.GetMaxSize())); |
| - | 125 | } |
|
| 123 | } |
126 | } |
| 124 | |
127 | catch (std::exception& e) |
| 125 | { |
128 | { |
| 126 | this->Disconnect(); |
129 | this->Disconnect(); |
| - | 130 | //throw std::runtime_error(e.what()); |
|
| 127 | } |
131 | } |
| 128 | } |
132 | } |
| 129 | 133 | ||
| 130 | void TcpClient::Read() |
134 | void TcpClient::Read() |
| 131 | { |
135 | { |