|
libASPL
|
#include <aspl/Client.hpp>
Public Member Functions | |
| Client (const ClientInfo &clientInfo) | |
| Construct client from ClientInfo. | |
| Client (const Client &)=delete | |
| Client & | operator= (const Client &)=delete |
| UInt32 | GetClientID () const |
| Client identifier. Allows for differentiating multiple clients in the same process. | |
| pid_t | GetProcessID () const |
| Client PID. The pid_t of the process that contains the client. | |
| bool | GetIsNativeEndian () const |
| Client endianness. Indicating whether or not the client has the same endianness as the server. | |
| std::string | GetBundleID () const |
| Client bundle. Bundle ID of the main bundle of the process that contains the client. | |
Device client.
Represents connection between an app and device. Typically an app has at most one client, but this is not a requirement.
Devices asks RequestHandler to create Client object when a new client comes to the devices, and asks to remove it when the client leaves.
You may subclass Client if you need to keep additional per-client state. To incorporate your own client class, you'll need to set custom RequestHandler.
Definition at line 47 of file Client.hpp.
| aspl::Client::Client | ( | const ClientInfo & | clientInfo | ) |
Construct client from ClientInfo.
| std::string aspl::Client::GetBundleID | ( | ) | const |
Client bundle. Bundle ID of the main bundle of the process that contains the client.
| UInt32 aspl::Client::GetClientID | ( | ) | const |
Client identifier. Allows for differentiating multiple clients in the same process.
| bool aspl::Client::GetIsNativeEndian | ( | ) | const |
Client endianness. Indicating whether or not the client has the same endianness as the server.
| pid_t aspl::Client::GetProcessID | ( | ) | const |
Client PID. The pid_t of the process that contains the client.