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.
-
~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 domainparser
: 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.
- Return
IP address
-
string
getFileServerAddress
() const¶ Retrieve file server address.
- Return
the address
-
const string &
getIdentity
()¶ Returns the identity of this client, usually describing the owner of the device (ie.
‘John’).
- Return
Identity of this client.
-
const string &
getName
()¶ Returns the name of this client (ie.
‘Cluster’, ‘HUD’).
- Return
Name of this client.
-
const string
getServerName
()¶ Retrieve the IP Address of the host that is to be connected next.
- Return
IP address
-
void
start
()¶ Starts the worker, connects to server and starts operation.
-
void
stop
()¶ Stops the worker, disconnects from server and stops operation.