Home
last modified time | relevance | path

Searched refs:socket_ (Results 1 – 5 of 5) sorted by relevance

/hal_espressif-3.6.0/examples/protocols/asio/asio_chat/main/
Dclient.hpp26 socket_(io_context) in chat_client()
47 asio::post(io_context_, [this]() { socket_.close(); }); in close()
53 asio::async_connect(socket_, endpoints, in do_connect()
65 asio::async_read(socket_, in do_read_header()
75 socket_.close(); in do_read_header()
82 asio::async_read(socket_, in do_read_body()
92 socket_.close(); in do_read_body()
99 asio::async_write(socket_, in do_write()
114 socket_.close(); in do_write()
121 asio::ip::tcp::socket socket_; member in chat_client
Dserver.hpp81 : socket_(std::move(socket)), in chat_session()
106 asio::async_read(socket_, in do_read_header()
124 asio::async_read(socket_, in do_read_body()
144 asio::async_write(socket_, in do_write()
164 asio::ip::tcp::socket socket_; member in chat_session
/hal_espressif-3.6.0/examples/protocols/asio/ssl_client_server/main/
Dasio_ssl_main.cpp43 : socket_(io_context, context) in Client()
47 socket_.set_verify_mode(asio::ssl::verify_peer); in Client()
49 socket_.set_verify_mode(asio::ssl::verify_none); in Client()
58 asio::async_connect(socket_.lowest_layer(), endpoints, in connect()
71 socket_.async_handshake(asio::ssl::stream_base::client, in handshake()
85 asio::async_write(socket_, in send_request()
98 asio::async_read(socket_, in receive_response()
111 asio::ssl::stream<tcp::socket> socket_; member in Client
119 : socket_(std::move(socket), context) in Session()
132 socket_.async_handshake(asio::ssl::stream_base::server, in do_handshake()
[all …]
/hal_espressif-3.6.0/examples/protocols/asio/udp_echo_server/main/
Dudp_echo_server.cpp27 : socket_(io_context, udp::endpoint(udp::v4(), port)) in server()
34 socket_.async_receive_from( in do_receive()
53 socket_.async_send_to( in do_send()
62 udp::socket socket_; member in server
/hal_espressif-3.6.0/examples/protocols/asio/tcp_echo_server/main/
Decho_server.cpp15 : socket_(std::move(socket)) in session()
28 socket_.async_read_some(asio::buffer(data_, max_length), in do_read()
43 asio::async_write(socket_, asio::buffer(data_, length), in do_write()
53 tcp::socket socket_; member in session