BitShares-Core
7.0.2
BitShares blockchain node software and command-line wallet software
|
Go to the documentation of this file.
12 class tcp_socket_io_hooks;
39 virtual size_t readsome(
char* buffer,
size_t max );
40 virtual size_t readsome(
const std::shared_ptr<char>& buffer,
size_t max,
size_t offset);
41 virtual bool eof()
const;
46 virtual size_t writesome(
const char* buffer,
size_t len );
47 virtual size_t writesome(
const std::shared_ptr<const char>& buffer,
size_t len,
size_t offset);
62 sizeof(boost::asio::ip::tcp::socket) +
79 void listen( uint16_t port );
void copy(const path &from, const path &to)
void bind(const fc::ip::endpoint &local_endpoint)
uint16_t get_port() const
void set_io_hooks(tcp_socket_io_hooks *new_hooks)
void enable_keep_alives(const fc::microseconds &interval)
void set_reuse_address(bool enable=true)
boost::asio::ip::tcp::endpoint endpoint
void listen(uint16_t port)
virtual size_t readsome(char *buffer, size_t max)
void connect_to(const fc::ip::endpoint &remote_endpoint)
fc::ip::endpoint get_local_endpoint() const
istream & read(char *buf, size_t len)
fc::ip::endpoint remote_endpoint() const
std::shared_ptr< tcp_socket > tcp_socket_ptr
void accept(tcp_socket &s)
tcp_socket & operator=(tcp_socket ©)=delete
virtual size_t writesome(const char *buffer, size_t len)
fc::ip::endpoint local_endpoint() const
void set_reuse_address(bool enable=true)
Used to forward declare value types.