#include <tcp_socket.hpp>
|
| tcp_socket () |
|
| tcp_socket (tcp_socket ©)=delete |
|
| ~tcp_socket () |
|
tcp_socket & | operator= (tcp_socket ©)=delete |
|
void | connect_to (const fc::ip::endpoint &remote_endpoint) |
|
void | bind (const fc::ip::endpoint &local_endpoint) |
|
void | enable_keep_alives (const fc::microseconds &interval) |
|
void | set_io_hooks (tcp_socket_io_hooks *new_hooks) |
|
void | set_reuse_address (bool enable=true) |
|
fc::ip::endpoint | remote_endpoint () const |
|
fc::ip::endpoint | local_endpoint () const |
|
void | get (char &c) |
|
void | open () |
|
bool | is_open () const |
|
virtual char | get () |
|
void | get (char &c) |
|
|
virtual size_t | readsome (char *buffer, size_t max) |
|
virtual size_t | readsome (const std::shared_ptr< char > &buffer, size_t max, size_t offset) |
|
virtual bool | eof () const |
|
|
virtual size_t | writesome (const char *buffer, size_t len) |
|
virtual size_t | writesome (const std::shared_ptr< const char > &buffer, size_t len, size_t offset) |
|
virtual void | flush () |
|
virtual void | close () |
|
virtual | ~ostream () |
|
void | put (char c) |
|
ostream & | write (const char *buf, size_t len) |
|
ostream & | write (const std::shared_ptr< const char > &buf, size_t len, size_t offset=0) |
|
virtual | ~istream () |
|
istream & | read (char *buf, size_t len) |
|
istream & | read (const std::shared_ptr< char > &buf, size_t len, size_t offset=0) |
|
virtual char | get () |
|
void | get (char &c) |
|
Definition at line 14 of file tcp_socket.hpp.
◆ tcp_socket() [1/2]
fc::tcp_socket::tcp_socket |
( |
| ) |
|
◆ tcp_socket() [2/2]
◆ ~tcp_socket()
fc::tcp_socket::~tcp_socket |
( |
| ) |
|
◆ bind()
◆ close()
void fc::tcp_socket::close |
( |
| ) |
|
|
virtual |
◆ connect_to()
◆ enable_keep_alives()
◆ eof()
bool fc::tcp_socket::eof |
( |
| ) |
const |
|
virtual |
◆ flush()
void fc::tcp_socket::flush |
( |
| ) |
|
|
virtual |
◆ get() [1/3]
◆ get() [2/3]
◆ get() [3/3]
void fc::tcp_socket::get |
( |
char & |
c | ) |
|
|
inline |
◆ is_open()
bool fc::tcp_socket::is_open |
( |
| ) |
const |
◆ local_endpoint()
◆ open()
void fc::tcp_socket::open |
( |
| ) |
|
◆ operator=()
◆ readsome() [1/2]
size_t fc::tcp_socket::readsome |
( |
char * |
buffer, |
|
|
size_t |
max |
|
) |
| |
|
virtual |
◆ readsome() [2/2]
size_t fc::tcp_socket::readsome |
( |
const std::shared_ptr< char > & |
buffer, |
|
|
size_t |
max, |
|
|
size_t |
offset |
|
) |
| |
|
virtual |
◆ remote_endpoint()
◆ set_io_hooks()
◆ set_reuse_address()
void fc::tcp_socket::set_reuse_address |
( |
bool |
enable = true | ) |
|
◆ writesome() [1/2]
size_t fc::tcp_socket::writesome |
( |
const char * |
buffer, |
|
|
size_t |
len |
|
) |
| |
|
virtual |
◆ writesome() [2/2]
size_t fc::tcp_socket::writesome |
( |
const std::shared_ptr< const char > & |
buffer, |
|
|
size_t |
len, |
|
|
size_t |
offset |
|
) |
| |
|
virtual |
◆ tcp_server
The documentation for this class was generated from the following files: