Home
last modified time | relevance | path

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

/third_party/boost/libs/asio/example/cpp03/tutorial/daytime3/
Dserver.cpp28 class tcp_connection class
29 : public boost::enable_shared_from_this<tcp_connection>
32 typedef boost::shared_ptr<tcp_connection> pointer;
36 return pointer(new tcp_connection(io_context)); in create()
49 boost::bind(&tcp_connection::handle_write, shared_from_this(), in start()
55 tcp_connection(boost::asio::io_context& io_context) in tcp_connection() function in tcp_connection
82 tcp_connection::pointer new_connection = in start_accept()
83 tcp_connection::create(io_context_); in start_accept()
90 void handle_accept(tcp_connection::pointer new_connection, in handle_accept()
/third_party/boost/libs/asio/example/cpp03/tutorial/daytime7/
Dserver.cpp30 class tcp_connection class
31 : public boost::enable_shared_from_this<tcp_connection>
34 typedef boost::shared_ptr<tcp_connection> pointer;
38 return pointer(new tcp_connection(io_context)); in create()
51 boost::bind(&tcp_connection::handle_write, shared_from_this())); in start()
55 tcp_connection(boost::asio::io_context& io_context) in tcp_connection() function in tcp_connection
81 tcp_connection::pointer new_connection = in start_accept()
82 tcp_connection::create(io_context_); in start_accept()
89 void handle_accept(tcp_connection::pointer new_connection, in handle_accept()
/third_party/boost/libs/asio/doc/
Dtutorial.qbk1241 ``''''''`` tcp_connection::pointer new_connection =
1242 ``''''''`` tcp_connection::create(io_context_);
1255 ``''''''`` void handle_accept(tcp_connection::pointer new_connection,
1268 [heading The tcp_connection class]
1270 We will use `shared_ptr` and `enable_shared_from_this` because we want to keep the `tcp_connection`…
1273 ``''''''``class tcp_connection
1274 ``''''''`` : public boost::enable_shared_from_this<tcp_connection>
1277 ``''''''`` typedef boost::shared_ptr<tcp_connection> pointer;
1281 ``''''''`` return pointer(new tcp_connection(io_context));
1312 ``''''''`` boost::bind(&tcp_connection::handle_write, shared_from_this(),
[all …]
/third_party/libuv/test/
Dtest-ipc.c31 static uv_tcp_t tcp_connection; variable
324 ASSERT_PTR_EQ(req->handle, &tcp_connection); in on_tcp_write()
340 ASSERT_PTR_EQ(tcp, &tcp_connection); in on_tcp_read()
387 r = uv_tcp_init(uv_default_loop(), &tcp_connection); in on_read_connection()
390 r = uv_accept(handle, (uv_stream_t*)&tcp_connection); in on_read_connection()
398 r = uv_write(&write_req, (uv_stream_t*)&tcp_connection, &outbuf, 1, in on_read_connection()
402 r = uv_read_start((uv_stream_t*)&tcp_connection, on_read_alloc, on_tcp_read); in on_read_connection()
/third_party/boost/libs/asio/example/cpp03/tutorial/
Ddaytime_dox.txt184 \section tutdaytime3classtcp_connection The tcp_connection class
187 want to keep the <tt>tcp_connection</tt> object alive as long as there is an
191 \skip class tcp_connection
239 boost::bind(&tcp_connection::handle_write, shared_from_this()));
470 \section tutdaytime7classtcp The tcp_connection and tcp_server classes
475 \skip class tcp_connection