| 169 | |
| 170 | private: |
| 171 | void stop() |
| 172 | { |
| 173 | channel_.leave(shared_from_this()); |
| 174 | |
| 175 | boost::system::error_code ignored_error; |
| 176 | socket_.close(ignored_error); |
| 177 | input_deadline_.cancel(); |
| 178 | non_empty_output_queue_.cancel(); |
| 179 | output_deadline_.cancel(); |
| 180 | } |
| 181 | |
| 182 | bool stopped() const |
| 183 | { |