Home
last modified time | relevance | path

Searched refs:CompletionToken (Results 1 – 25 of 61) sorted by relevance

123

/third_party/boost/libs/asio/test/archetypes/
Ddeprecated_async_ops.hpp36 template <typename CompletionToken>
38 typename boost::asio::handler_type<CompletionToken,
41 BOOST_ASIO_MOVE_ARG(CompletionToken) token) in deprecated_async_op_0()
43 typedef typename boost::asio::handler_type<CompletionToken, in deprecated_async_op_0()
46 handler_type handler(BOOST_ASIO_MOVE_CAST(CompletionToken)(token)); in deprecated_async_op_0()
55 template <typename CompletionToken>
57 typename boost::asio::handler_type<CompletionToken,
60 bool ok, BOOST_ASIO_MOVE_ARG(CompletionToken) token) in deprecated_async_op_ec_0()
62 typedef typename boost::asio::handler_type<CompletionToken, in deprecated_async_op_ec_0()
65 handler_type handler(BOOST_ASIO_MOVE_CAST(CompletionToken)(token)); in deprecated_async_op_ec_0()
[all …]
Dasync_ops.hpp33 template <typename CompletionToken>
34 BOOST_ASIO_INITFN_RESULT_TYPE(CompletionToken, void()) in BOOST_ASIO_INITFN_RESULT_TYPE() argument
35 async_op_0(BOOST_ASIO_MOVE_ARG(CompletionToken) token) in BOOST_ASIO_INITFN_RESULT_TYPE()
37 typedef typename boost::asio::async_completion<CompletionToken, in BOOST_ASIO_INITFN_RESULT_TYPE()
40 boost::asio::async_completion<CompletionToken, in BOOST_ASIO_INITFN_RESULT_TYPE()
54 template <typename CompletionToken>
55 BOOST_ASIO_INITFN_RESULT_TYPE(CompletionToken, void(boost::system::error_code)) in BOOST_ASIO_INITFN_RESULT_TYPE() argument
56 async_op_ec_0(bool ok, BOOST_ASIO_MOVE_ARG(CompletionToken) token) in BOOST_ASIO_INITFN_RESULT_TYPE()
58 typedef typename boost::asio::async_completion<CompletionToken, in BOOST_ASIO_INITFN_RESULT_TYPE()
61 boost::asio::async_completion<CompletionToken, in BOOST_ASIO_INITFN_RESULT_TYPE()
[all …]
/third_party/boost/boost/asio/
Dasync_result.hpp106 template <typename CompletionToken, BOOST_ASIO_COMPLETION_SIGNATURE Signature>
111 typedef CompletionToken completion_handler_type;
206 template <typename CompletionToken, BOOST_ASIO_COMPLETION_SIGNATURE Signature>
211 typename decay<CompletionToken>::type,
220 explicit async_completion(CompletionToken& token) in async_completion()
222 is_same<CompletionToken, completion_handler_type>::value, in async_completion()
223 completion_handler_type&, CompletionToken&&>::type>(token)), in async_completion()
228 explicit async_completion(typename decay<CompletionToken>::type& token) in async_completion()
234 explicit async_completion(const typename decay<CompletionToken>::type& token) in async_completion()
244 is_same<CompletionToken, completion_handler_type>::value,
[all …]
Dco_spawn.hpp102 void(std::exception_ptr, T)) CompletionToken
105 CompletionToken, void(std::exception_ptr, T))
107 CompletionToken&& token
158 void(std::exception_ptr)) CompletionToken
161 CompletionToken, void(std::exception_ptr))
163 CompletionToken&& token
222 void(std::exception_ptr, T)) CompletionToken
226 CompletionToken, void(std::exception_ptr, T))
228 CompletionToken&& token
281 void(std::exception_ptr)) CompletionToken
[all …]
Dcompose.hpp102 template <typename CompletionToken, typename Signature,
104 BOOST_ASIO_INITFN_AUTO_RESULT_TYPE(CompletionToken, Signature)
106 BOOST_ASIO_NONDEDUCED_MOVE_ARG(CompletionToken) token,
112 template <typename CompletionToken, typename Signature, typename Implementation>
113 BOOST_ASIO_INITFN_AUTO_RESULT_TYPE(CompletionToken, Signature)
115 BOOST_ASIO_NONDEDUCED_MOVE_ARG(CompletionToken) token);
118 template <typename CompletionToken, typename Signature, \
120 BOOST_ASIO_INITFN_AUTO_RESULT_TYPE(CompletionToken, Signature) \
122 BOOST_ASIO_NONDEDUCED_MOVE_ARG(CompletionToken) token, \
Ddispatch.hpp54 template <BOOST_ASIO_COMPLETION_TOKEN_FOR(void()) CompletionToken>
55 BOOST_ASIO_INITFN_AUTO_RESULT_TYPE(CompletionToken, void()) dispatch(
56 BOOST_ASIO_MOVE_ARG(CompletionToken) token);
89 BOOST_ASIO_COMPLETION_TOKEN_FOR(void()) CompletionToken
91 BOOST_ASIO_INITFN_AUTO_RESULT_TYPE(CompletionToken, void()) dispatch(
93 BOOST_ASIO_MOVE_ARG(CompletionToken) token
105 BOOST_ASIO_COMPLETION_TOKEN_FOR(void()) CompletionToken
108 BOOST_ASIO_INITFN_AUTO_RESULT_TYPE(CompletionToken, void()) dispatch(
110 BOOST_ASIO_MOVE_ARG(CompletionToken) token
Ddefer.hpp59 template <BOOST_ASIO_COMPLETION_TOKEN_FOR(void()) CompletionToken>
60 BOOST_ASIO_INITFN_AUTO_RESULT_TYPE(CompletionToken, void()) defer(
61 BOOST_ASIO_MOVE_ARG(CompletionToken) token);
99 BOOST_ASIO_COMPLETION_TOKEN_FOR(void()) CompletionToken
101 BOOST_ASIO_INITFN_AUTO_RESULT_TYPE(CompletionToken, void()) defer(
103 BOOST_ASIO_MOVE_ARG(CompletionToken) token
114 BOOST_ASIO_COMPLETION_TOKEN_FOR(void()) CompletionToken
117 BOOST_ASIO_INITFN_AUTO_RESULT_TYPE(CompletionToken, void()) defer(
119 BOOST_ASIO_MOVE_ARG(CompletionToken) token
Dpost.hpp57 template <BOOST_ASIO_COMPLETION_TOKEN_FOR(void()) CompletionToken>
58 BOOST_ASIO_INITFN_AUTO_RESULT_TYPE(CompletionToken, void()) post(
59 BOOST_ASIO_MOVE_ARG(CompletionToken) token);
95 BOOST_ASIO_COMPLETION_TOKEN_FOR(void()) CompletionToken
97 BOOST_ASIO_INITFN_AUTO_RESULT_TYPE(CompletionToken, void()) post(
99 BOOST_ASIO_MOVE_ARG(CompletionToken) token
110 BOOST_ASIO_COMPLETION_TOKEN_FOR(void()) CompletionToken
113 BOOST_ASIO_INITFN_AUTO_RESULT_TYPE(CompletionToken, void()) post(
115 BOOST_ASIO_MOVE_ARG(CompletionToken) token
Dredirect_error.hpp33 template <typename CompletionToken>
47 CompletionToken token_;
52 template <typename CompletionToken>
53 inline redirect_error_t<typename decay<CompletionToken>::type> redirect_error( in redirect_error()
54 BOOST_ASIO_MOVE_ARG(CompletionToken) completion_token, in redirect_error()
57 return redirect_error_t<typename decay<CompletionToken>::type>( in redirect_error()
58 BOOST_ASIO_MOVE_CAST(CompletionToken)(completion_token), ec); in redirect_error()
/third_party/boost/boost/asio/impl/
Dco_spawn.hpp197 void(std::exception_ptr, T)) CompletionToken>
199 CompletionToken, void(std::exception_ptr, T)) in BOOST_ASIO_INITFN_AUTO_RESULT_TYPE() argument
201 awaitable<T, AwaitableExecutor> a, CompletionToken&& token, in BOOST_ASIO_INITFN_AUTO_RESULT_TYPE()
207 return async_initiate<CompletionToken, void(std::exception_ptr, T)>( in BOOST_ASIO_INITFN_AUTO_RESULT_TYPE()
214 void(std::exception_ptr)) CompletionToken>
216 CompletionToken, void(std::exception_ptr)) in BOOST_ASIO_INITFN_AUTO_RESULT_TYPE() argument
218 awaitable<void, AwaitableExecutor> a, CompletionToken&& token, in BOOST_ASIO_INITFN_AUTO_RESULT_TYPE()
224 return async_initiate<CompletionToken, void(std::exception_ptr)>( in BOOST_ASIO_INITFN_AUTO_RESULT_TYPE()
232 void(std::exception_ptr, T)) CompletionToken>
234 CompletionToken, void(std::exception_ptr, T)) in BOOST_ASIO_INITFN_AUTO_RESULT_TYPE() argument
[all …]
Ddispatch.hpp207 template <BOOST_ASIO_COMPLETION_TOKEN_FOR(void()) CompletionToken>
208 BOOST_ASIO_INITFN_AUTO_RESULT_TYPE(CompletionToken, void()) dispatch( in BOOST_ASIO_INITFN_AUTO_RESULT_TYPE() argument
209 BOOST_ASIO_MOVE_ARG(CompletionToken) token) in BOOST_ASIO_INITFN_AUTO_RESULT_TYPE()
211 return async_initiate<CompletionToken, void()>( in BOOST_ASIO_INITFN_AUTO_RESULT_TYPE()
216 BOOST_ASIO_COMPLETION_TOKEN_FOR(void()) CompletionToken>
217 BOOST_ASIO_INITFN_AUTO_RESULT_TYPE(CompletionToken, void()) dispatch( in BOOST_ASIO_INITFN_AUTO_RESULT_TYPE() argument
218 const Executor& ex, BOOST_ASIO_MOVE_ARG(CompletionToken) token, in BOOST_ASIO_INITFN_AUTO_RESULT_TYPE()
223 return async_initiate<CompletionToken, void()>( in BOOST_ASIO_INITFN_AUTO_RESULT_TYPE()
228 BOOST_ASIO_COMPLETION_TOKEN_FOR(void()) CompletionToken>
229 inline BOOST_ASIO_INITFN_AUTO_RESULT_TYPE(CompletionToken, void()) dispatch( in BOOST_ASIO_INITFN_AUTO_RESULT_TYPE() argument
[all …]
Dpost.hpp212 template <BOOST_ASIO_COMPLETION_TOKEN_FOR(void()) CompletionToken>
213 BOOST_ASIO_INITFN_AUTO_RESULT_TYPE(CompletionToken, void()) post( in BOOST_ASIO_INITFN_AUTO_RESULT_TYPE() argument
214 BOOST_ASIO_MOVE_ARG(CompletionToken) token) in BOOST_ASIO_INITFN_AUTO_RESULT_TYPE()
216 return async_initiate<CompletionToken, void()>( in BOOST_ASIO_INITFN_AUTO_RESULT_TYPE()
221 BOOST_ASIO_COMPLETION_TOKEN_FOR(void()) CompletionToken>
222 BOOST_ASIO_INITFN_AUTO_RESULT_TYPE(CompletionToken, void()) post( in BOOST_ASIO_INITFN_AUTO_RESULT_TYPE() argument
223 const Executor& ex, BOOST_ASIO_MOVE_ARG(CompletionToken) token, in BOOST_ASIO_INITFN_AUTO_RESULT_TYPE()
228 return async_initiate<CompletionToken, void()>( in BOOST_ASIO_INITFN_AUTO_RESULT_TYPE()
233 BOOST_ASIO_COMPLETION_TOKEN_FOR(void()) CompletionToken>
234 inline BOOST_ASIO_INITFN_AUTO_RESULT_TYPE(CompletionToken, void()) post( in BOOST_ASIO_INITFN_AUTO_RESULT_TYPE() argument
[all …]
Ddefer.hpp212 template <BOOST_ASIO_COMPLETION_TOKEN_FOR(void()) CompletionToken>
213 BOOST_ASIO_INITFN_AUTO_RESULT_TYPE(CompletionToken, void()) defer( in BOOST_ASIO_INITFN_AUTO_RESULT_TYPE() argument
214 BOOST_ASIO_MOVE_ARG(CompletionToken) token) in BOOST_ASIO_INITFN_AUTO_RESULT_TYPE()
216 return async_initiate<CompletionToken, void()>( in BOOST_ASIO_INITFN_AUTO_RESULT_TYPE()
221 BOOST_ASIO_COMPLETION_TOKEN_FOR(void()) CompletionToken>
222 BOOST_ASIO_INITFN_AUTO_RESULT_TYPE(CompletionToken, void()) defer( in BOOST_ASIO_INITFN_AUTO_RESULT_TYPE() argument
223 const Executor& ex, BOOST_ASIO_MOVE_ARG(CompletionToken) token, in BOOST_ASIO_INITFN_AUTO_RESULT_TYPE()
228 return async_initiate<CompletionToken, void()>( in BOOST_ASIO_INITFN_AUTO_RESULT_TYPE()
233 BOOST_ASIO_COMPLETION_TOKEN_FOR(void()) CompletionToken>
234 inline BOOST_ASIO_INITFN_AUTO_RESULT_TYPE(CompletionToken, void()) defer( in BOOST_ASIO_INITFN_AUTO_RESULT_TYPE() argument
[all …]
Dredirect_error.hpp42 template <typename CompletionToken>
43 redirect_error_handler(redirect_error_t<CompletionToken> e) in redirect_error_handler()
45 handler_(BOOST_ASIO_MOVE_CAST(CompletionToken)(e.token_)) in redirect_error_handler()
244 template <typename CompletionToken, typename Signature>
245 struct async_result<redirect_error_t<CompletionToken>, Signature>
247 typedef typename async_result<CompletionToken,
317 return async_initiate<CompletionToken, in initiate()
331 return async_initiate<CompletionToken, in initiate()
346 return async_initiate<CompletionToken, \
/third_party/boost/libs/beast/example/echo-op/
Decho_op.cpp25 class CompletionToken>
27 async_echo (AsyncStream& stream, DynamicBuffer& buffer, CompletionToken&& token)
32 typename std::decay<CompletionToken>::type,
88 class CompletionToken>
93 CompletionToken&& token) ->
95 typename std::decay<CompletionToken>::type,
115 class CompletionToken>
120 CompletionToken&& token) -> in async_echo()
122 typename std::decay<CompletionToken>::type, in async_echo()
139 net::async_completion<CompletionToken, void(beast::error_code)> init(token); in async_echo()
[all …]
/third_party/boost/libs/asio/test/
Dcompose.cpp63 template <typename CompletionToken>
64 BOOST_ASIO_INITFN_RESULT_TYPE(CompletionToken, void()) in BOOST_ASIO_INITFN_RESULT_TYPE() argument
66 BOOST_ASIO_MOVE_ARG(CompletionToken) token) in BOOST_ASIO_INITFN_RESULT_TYPE()
68 return boost::asio::async_compose<CompletionToken, void()>( in BOOST_ASIO_INITFN_RESULT_TYPE()
160 template <typename CompletionToken>
161 BOOST_ASIO_INITFN_RESULT_TYPE(CompletionToken, void(int)) in BOOST_ASIO_INITFN_RESULT_TYPE() argument
163 BOOST_ASIO_MOVE_ARG(CompletionToken) token) in BOOST_ASIO_INITFN_RESULT_TYPE()
165 return boost::asio::async_compose<CompletionToken, void(int)>( in BOOST_ASIO_INITFN_RESULT_TYPE()
/third_party/boost/boost/beast/core/
Ddetect_ssl.hpp319 class CompletionToken =
323 BOOST_ASIO_INITFN_RESULT_TYPE(CompletionToken, void(error_code, bool))
330 CompletionToken&& token = net::default_completion_token_t<
333 …typename std::decay<CompletionToken>::type, /*< `async_result` customizes the return value based o…
397 class CompletionToken>
399 BOOST_ASIO_INITFN_RESULT_TYPE(CompletionToken, void(error_code, bool)) in BOOST_ASIO_INITFN_RESULT_TYPE() argument
406 CompletionToken&& token) in BOOST_ASIO_INITFN_RESULT_TYPE()
408 typename std::decay<CompletionToken>::type, in BOOST_ASIO_INITFN_RESULT_TYPE()
437 CompletionToken, in BOOST_ASIO_INITFN_RESULT_TYPE()
/third_party/boost/boost/beast/core/detail/
Dis_invocable.hpp56 template<class CompletionToken, class Signature, class = void>
67 template<class CompletionToken, class R, class...Args>
69 CompletionToken, R(Args...), boost::void_t<decltype(
70 boost::asio::async_initiate<CompletionToken, R(Args...)>(
71 any_initiation(), std::declval<CompletionToken&>())
/third_party/boost/doc/html/boost_asio/example/cpp11/operations/
Dcomposed_2.cpp31 template <typename CompletionToken>
34 CompletionToken&& token) in async_write_message()
42 typename std::decay<CompletionToken>::type, in async_write_message()
58 std::forward<CompletionToken>(token)); in async_write_message()
66 std::forward<CompletionToken>(token)); in async_write_message()
Dcomposed_1.cpp30 template <typename CompletionToken>
32 const char* message, CompletionToken&& token) in async_write_message()
40 typename std::decay<CompletionToken>::type, in async_write_message()
49 std::forward<CompletionToken>(token)); in async_write_message()
/third_party/boost/libs/asio/example/cpp11/operations/
Dcomposed_2.cpp31 template <typename CompletionToken>
34 CompletionToken&& token) in async_write_message()
42 typename std::decay<CompletionToken>::type, in async_write_message()
58 std::forward<CompletionToken>(token)); in async_write_message()
66 std::forward<CompletionToken>(token)); in async_write_message()
Dcomposed_1.cpp30 template <typename CompletionToken>
32 const char* message, CompletionToken&& token) in async_write_message()
40 typename std::decay<CompletionToken>::type, in async_write_message()
49 std::forward<CompletionToken>(token)); in async_write_message()
Dcomposed_3.cpp95 template <typename CompletionToken>
97 const char* message, CompletionToken&& token) in async_write_message()
106 typename std::decay<CompletionToken>::type, in async_write_message()
125 CompletionToken, void(boost::system::error_code)>( in async_write_message()
/third_party/boost/doc/html/boost_asio/example/cpp14/operations/
Dcomposed_2.cpp31 template <typename CompletionToken>
34 CompletionToken&& token) in async_write_message()
58 std::forward<CompletionToken>(token)); in async_write_message()
66 std::forward<CompletionToken>(token)); in async_write_message()
/third_party/boost/libs/asio/example/cpp14/operations/
Dcomposed_2.cpp31 template <typename CompletionToken>
34 CompletionToken&& token) in async_write_message()
58 std::forward<CompletionToken>(token)); in async_write_message()
66 std::forward<CompletionToken>(token)); in async_write_message()

123