ClientDescriptor

class kanzi::connect::ClientDescriptor

Contains client description information.

This is used for identification purposes only and contains no functionality.

Public Functions

ClientDescriptor(ClientIdentifier id, string ip)

C++ constructor.

Parameters
  • id: identifier for the client. Locally unique.

  • ip: address of the client.

ClientDescriptor(ConnectedClientSharedPtr connectedClient)

C++ constructor.

Parameters
  • connectedClient: shared pointer to client information from which relevant is retrieved.

const string &getAddress() const

Get the client address.

Return

address.

ClientIdentifier getId() const

Get the client identifier.

Return

the identifier