Skip to content

Commit

Permalink
ServiceResponse -> SServiceResponse
Browse files Browse the repository at this point in the history
DEFAULT_TIME_ARGUMENT
  • Loading branch information
rex-schilasky committed Feb 7, 2025
1 parent 6e78300 commit 5d48292
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ namespace eCAL
class CServiceClientBase : public eCAL::CServiceClient
{
public:
static constexpr long long DEFAULT_TIME_ARGUMENT = -1; /*!< Use DEFAULT_TIME_ARGUMENT in the `CallWithResponse()` and `CallWithCallback()` functions for blocking calls */

CServiceClientBase(const ClientEventCallbackT& event_callback = ClientEventCallbackT())
: eCAL::CServiceClient(GetServiceNameFromDescriptor<T>(), CreateServiceMethodInformationSet<T>(), event_callback)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ namespace eCAL
/**
* @brief Client class for untyped synchronous responses.
*
* Provides only the CallWithResponse method that returns a vector of ServiceResponse.
* Provides only the CallWithResponse method that returns a vector of SServiceResponse.
*/
template <typename T>
class CServiceClientUntypedResponse : public CServiceClientResponseBase<T>
Expand All @@ -51,13 +51,13 @@ namespace eCAL
* @param method_name Method name.
* @param request Request message.
* @param timeout Timeout in milliseconds (DEFAULT_TIME_ARGUMENT for infinite).
* @return A pair of overall success and a vector of ServiceResponse.
* @return A pair of overall success and a vector of SServiceResponse.
*/
std::pair<bool, ServiceResponseVecT> CallWithResponse(const std::string& method_name,
const google::protobuf::Message& request,
int timeout = DEFAULT_TIME_ARGUMENT) const
{
return this->template ProcessInstances<ServiceResponse>(
return this->template ProcessInstances<SServiceResponse>(
[&](auto& instance) {
return instance.CallWithResponse(method_name, request, timeout);
}
Expand Down

0 comments on commit 5d48292

Please sign in to comment.