Client

namespace Client

The client component implements the client concept of the Common API C++ client/server architecture, it supports both D-Bus and SOME/IP runtime bindings.

In this project, it implements request methods and non-persistent storage to test the different functionalities of the Common API C++ framework, refer to the application for details of how it fits with the rest of the architecture.

class AppClient : public Utils::Capi::Priv::ClientBase<Proxy, AttributeExtensions>

Implementation of an application client.

Public Functions

AppClient(const std::string &domain, const std::string &instance, const std::string &connection)

Class constructor.

Parameters:
  • domain[in] Common API C++ domain for the application client.

  • instance[in] Common API C++ instance for the application client.

  • connection[in] Common API C++ connection for the application client.

~AppClient(void) override

Class destructor.

Utils::Error::ID ping(const std::string &request, std::string &response)

Synchronous method to send a request and get the same data as a response.

Parameters:
  • request[in] Request from the client.

  • response[out] Response from the server.

Returns:

Identifier for the error.

Utils::Error::ID App::Client::main(void)

Main function for a client executable.

Returns:

Identifier for the error.