constexpr size_t size_t_max = numeric_limits<size_t>::max();
-class thread_exit_exception : exception {};
-
class connection;
class connection_delegate {
public:
virtual bool got_pdu(const shared_ptr<connection> & c, const string & b) = 0;
- virtual ~connection_delegate() {}
+ virtual ~connection_delegate();
};
class connection : private aio_callback, public enable_shared_from_this<connection> {
bool send(const string & b);
- static shared_ptr<connection> to_dst(const sockaddr_in &dst, connection_delegate *mgr, int lossy=0);
+ static shared_ptr<connection> to_dst(const sockaddr_in & dst, connection_delegate *mgr, int lossy=0);
const time_point<steady_clock> create_time = steady_clock::now();
const file_t fd;