Searched refs:AsyncAPI (Results 1 – 3 of 3) sorted by relevance
54 class AsyncAPI { class57 AsyncAPI();85 AsyncAPI::AsyncAPI() : in AsyncAPI() function in AsyncAPI89 void AsyncAPI::inject_error( errorcode ec) { in inject_error()94 void AsyncAPI::init_write( std::string const& data, Fn && callback) { in init_write()119 void AsyncAPI::init_read( Fn && callback) { in init_read()145 std::runtime_error make_exception( std::string const& desc, AsyncAPI::errorcode);148 AsyncAPI::errorcode write_ec( AsyncAPI & api, std::string const& data) { in write_ec()149 boost::fibers::promise< AsyncAPI::errorcode > promise; in write_ec()150 boost::fibers::future< AsyncAPI::errorcode > future( promise.get_future() ); in write_ec()[all …]
39 class AsyncAPI: public AsyncAPIBase { class42 AsyncAPI( std::string const& data);61 AsyncAPI::AsyncAPI( std::string const& data) : in AsyncAPI() function in AsyncAPI66 void AsyncAPI::inject_error( errorcode ec) { in inject_error()70 void AsyncAPI::init_read( Response::ptr response) { in init_read()95 std::runtime_error make_exception( std::string const& desc, AsyncAPI::errorcode);122 std::string read( AsyncAPI & api) { in read()137 std::runtime_error make_exception( std::string const& desc, AsyncAPI::errorcode ec) { in make_exception()148 AsyncAPI api("abcd"); in main()
26 [AsyncAPI]30 * The `AsyncAPI` method only initiates the operation. It returns immediately,44 The `AsyncAPI::init_write()` callback passes only an `errorcode`. If we simply60 dummy `AsyncAPI` implementation illustrates that: it simulates async I/O by118 Now the `AsyncAPI` operation might look more like this:146 hypothetical `AsyncAPI` asynchronous operations.