Function email::wait_for_response(const SequenceNumber, ServiceClient *, const std::chrono::milliseconds)

Function Documentation

std::string email::wait_for_response(const SequenceNumber sequence_number, ServiceClient *client, const std::chrono::milliseconds timeout = std::chrono::milliseconds(-1))

Get a service reponse, waiting until it is available.

For the meaning of the timeout parameter, see WaitSet::wait.

Parameters:
  • sequence_number – the request sequence number

  • client – the service client

  • timeout – the timeout

Returns:

the response