| 174 | typedef std::function<void(void)> D_handler; |
| 175 | |
| 176 | explicit TCPSocket(RW_handler &&rw_handler, D_handler &&d_handler) |
| 177 | : rw_handler(std::move(rw_handler)), d_handler(std::move(d_handler)) {} |
| 178 | virtual ~TCPSocket() { close(); } |
| 179 | void close(); // after close you are guaranteed that no handlers will be called |
| 180 | bool is_open() const; // Connecting or connected |
nothing calls this directly
no outgoing calls
no test coverage detected