aes70::async_response_generator struct

Variant of response_generator which can be copied and used to respond to calls 'later'.

Constructors, destructors, conversion operators

async_response_generator(const response_generator& response)

Public functions

auto find_connection() const -> aes70::device::connection*
auto response_generator(aes70::device::connection& connection) const -> aes70::response_generator
auto response_generator(aes70::device::connection* connection) const -> aes70::response_generator

Function documentation

aes70::async_response_generator::async_response_generator(const response_generator& response)

Constructs an async_response_generator from the given response_generator.

aes70::device::connection* aes70::async_response_generator::find_connection() const

Returns the connection which sent the original request to which a response needs to be sent.

Returns nullptr if the connection has been closed.

aes70::response_generator aes70::async_response_generator::response_generator(aes70::device::connection& connection) const

Returns a response_generator corresponding to this async_response_generator and the aes70::device::connection returned by find_connection.

aes70::response_generator aes70::async_response_generator::response_generator(aes70::device::connection* connection) const

Returns a response_generator corresponding to this async_response_generator and the aes70::device::connection returned by find_connection.