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 );
57 void get(
char& c ) {
read( &c, 1 ); }
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;
istream & read(char *buf, size_t len)
void connect_to(const fc::ip::endpoint &remote_endpoint)
fc::tcp_socket & get_socket()
virtual size_t writesome(const char *buffer, size_t len)
fc::sha512 get_shared_secret() const
virtual size_t readsome(char *buffer, size_t max)
void bind(const fc::ip::endpoint &local_endpoint)
an elliptic curve private key.
std::shared_ptr< stcp_socket > stcp_socket_ptr