Function email::wait_for_request_with_info(ServiceServer *, const std::chrono::milliseconds)

Function Documentation

std::pair<struct ServiceRequest, ServiceInfo> email::wait_for_request_with_info(ServiceServer *server, const std::chrono::milliseconds timeout = std::chrono::milliseconds(-1))

Get a service request with info, waiting until one is available.

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

Parameters:
  • server – the server

  • timeout – the timeout

Returns:

the service request with info