libASPL
Loading...
Searching...
No Matches
aspl::Client Class Reference

Device client. More...

#include <aspl/Client.hpp>

Public Member Functions

 Client (const ClientInfo &clientInfo)
 Construct client from ClientInfo.
 
 Client (const Client &)=delete
 
Clientoperator= (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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ Client()

aspl::Client::Client ( const ClientInfo & clientInfo)

Construct client from ClientInfo.

Member Function Documentation

◆ GetBundleID()

std::string aspl::Client::GetBundleID ( ) const

Client bundle. Bundle ID of the main bundle of the process that contains the client.

◆ GetClientID()

UInt32 aspl::Client::GetClientID ( ) const

Client identifier. Allows for differentiating multiple clients in the same process.

◆ GetIsNativeEndian()

bool aspl::Client::GetIsNativeEndian ( ) const

Client endianness. Indicating whether or not the client has the same endianness as the server.

◆ GetProcessID()

pid_t aspl::Client::GetProcessID ( ) const

Client PID. The pid_t of the process that contains the client.


The documentation for this class was generated from the following file: