WorkerBase¶
-
class
kanzi::connect::WorkerBase: public Connection::WorkNotifyCallback¶ A class implements basis related to integrating of Kanzi workloop into kanziconnect workloop.
Subclassed by Worker
Public Functions
Constructor.
- Parameters
client – Kanzi Connect client instance that is managed by this worker.
-
virtual
~WorkerBase()¶ Destructor.
-
void
configure(Domain &domain, ConnectionConfigurationParser &parser, const ConnectionConfigurationReadIf::Configuration &config, const string &serverName)¶ Configure the worker with parsed connection configuration.
- Parameters
domain – The UI domain
parser – configuration parser holding all the configurations.
config – Contains the connection configuration to use
-
const string
getActiveAddress()¶ Retrieve the IP Address of the host that is to be connected next.
- Returns
IP address
-
string
getFileServerAddress() const¶ Retrieve file server address.
- Returns
the address
-
inline const string &
getIdentity()¶ Returns the identity of this client, usually describing the owner of the device (ie.
‘John’).
- Returns
Identity of this client.
-
inline const string &
getName()¶ Returns the name of this client (ie.
‘Cluster’, ‘HUD’).
- Returns
Name of this client.
-
inline const string
getServerName()¶ Retrieve the IP Address of the host that is to be connected next.
- Returns
IP address
-
void
start()¶ Starts the worker, connects to server and starts operation.
-
void
stop()¶ Stops the worker, disconnects from server and stops operation.