A TCP socket class implementing the asio::Socket interface.
More...
#include <TcpSocket.h>
A TCP socket class implementing the asio::Socket interface.
Synopsis:
auto context = std::make_shared<asio::Context>();
if (!ec) {
}
});
A TCP socket class implementing the asio::Socket interface.
std::shared_ptr< Context > context
boost::asio::ip::tcp::socket socket
boost::system::error_code ErrorCode
Definition at line 35 of file TcpSocket.h.
◆ TcpSocket() [1/2]
asio::TcpSocket::TcpSocket |
( |
std::shared_ptr< Context > |
context | ) |
|
◆ ~TcpSocket()
asio::TcpSocket::~TcpSocket |
( |
| ) |
|
|
override |
◆ TcpSocket() [2/2]
asio::TcpSocket::TcpSocket |
( |
const TcpSocket & |
| ) |
|
|
delete |
◆ async_connect()
template<typename ConnectCompletionHandler >
void asio::TcpSocket::async_connect |
( |
const std::string & |
host, |
|
|
const unsigned short |
port, |
|
|
ConnectCompletionHandler && |
handler |
|
) |
| |
|
inline |
◆ async_read()
void asio::TcpSocket::async_read |
( |
void * |
buffer, |
|
|
const std::size_t |
buffer_size, |
|
|
const CompletionHandler & |
handler |
|
) |
| |
|
overridevirtual |
◆ async_write()
void asio::TcpSocket::async_write |
( |
const void * |
buffer, |
|
|
const std::size_t |
buffer_size, |
|
|
const CompletionHandler & |
handler |
|
) |
| |
|
overridevirtual |
◆ close()
void asio::TcpSocket::close |
( |
| ) |
|
|
overridevirtual |
◆ is_open()
bool asio::TcpSocket::is_open |
( |
| ) |
const |
◆ is_valid()
bool asio::TcpSocket::is_valid |
( |
| ) |
const |
|
overridevirtual |
◆ operator=()
◆ TcpAcceptor
◆ context
std::shared_ptr<Context> asio::TcpSocket::context |
|
protected |
◆ socket
boost::asio::ip::tcp::socket asio::TcpSocket::socket |
|
protected |
The documentation for this class was generated from the following file:
- FMEstable/ReleaseMeVis/Projects/AsynchronousIO/Sources/asio/TcpSocket.h