46 virtual size_t readsome(
char* buffer,
size_t max );
47 virtual size_t readsome(
const std::shared_ptr<char>& buf,
size_t len,
size_t offset );
48 virtual bool eof()
const;
50 virtual size_t writesome(
const char* buffer,
size_t len );
51 virtual size_t writesome(
const std::shared_ptr<const char>& buf,
size_t len,
size_t offset );
60 void do_key_exchange();
67 std::shared_ptr<char> _read_buffer;
68 std::shared_ptr<char> _write_buffer;
70 bool _read_buffer_in_use;
71 bool _write_buffer_in_use;