X-Git-Url: http://xvm.mit.edu/gitweb/invirt/third/libt4.git/blobdiff_plain/6b5e09540e9392a7015fae1ad3b01b0973600ff2..d54215aea2a7321ab0f2dc7b0042fea2b7ff5df5:/rpc/connection.h diff --git a/rpc/connection.h b/rpc/connection.h index 97bacbb..87d17e4 100644 --- a/rpc/connection.h +++ b/rpc/connection.h @@ -19,7 +19,7 @@ class connection_delegate { virtual ~connection_delegate() {} }; -class connection : public aio_callback, public enable_shared_from_this { +class connection : private aio_callback, public enable_shared_from_this { public: struct charbuf { string buf; @@ -34,14 +34,14 @@ class connection : public aio_callback, public enable_shared_from_this create_time() const { return create_time_; } static shared_ptr to_dst(const sockaddr_in &dst, connection_delegate *mgr, int lossy=0); private: + void write_cb(int s); + void read_cb(int s); bool readpdu(); bool writepdu(); @@ -63,23 +63,21 @@ class connection : public aio_callback, public enable_shared_from_this> conns_; - - void process_accept(); }; #endif