TZeroConfHubClient Class

This is a Library topic for RemObjects SDK for Delphi
This page is generated from external data, please do not update
Interfaces — Classes — Aliases — Implements
Contents |
Overview
The TZeroConfHubClient implements the IROStreamWorkerCallbacks interface, which is used in the ZeroConf environment to provide callbacks from background working threads (like TROStreamWorker) to callers (such as TROZeroConfRegistrationEngine or TROZeroConfResolveEngine). It is used internally by the TROServiceSetup, TROHubRegistrationStrategy, TROHubBrowseStrategy, etc. classes to communicate with the ROZeroConf Hub.
Location
uROZeroConfHub.pas TZeroConfHubClient | Descendants
Implemented interfaces
Properties
| CommandTimeout |
|---|
|
Time in millisecond to wait for a response (90000 by default).
|
| Running |
|
True if there is a running TROStreamWorker (when Start was called and Stop is not called yet).
|
Instance Methods
| constructor Create |
|---|
|
Initializes the instance and calls Start. If AutoStartHub is True, Start will call LaunchHub to activate the ROZeroConf Hub.
|
| destructor Destroy override |
|
|
| _AddRef protected stdcall |
|
Always returns -1 to indicate that no reference counting is taking place.
|
| _Release protected stdcall |
|
Always returns -1 to indicate that no reference counting is taking place.
|
| BlockResolve |
|
Tries to resolve the service of the type aServiceType in the domain aDomain with the name aServiceName, blocking for no more than aTimeout seconds.
|
| BrowseService |
|
Asks the ROZeroConf Hub for the registered aServiceType in the aDomain services with help of the TROStreamWorker. When a request is done, aDelegate.ResolveBrowseResult will be called along with the value of aUserData. Returns the host's handle of the discovered service.
|
| CloseHandle |
|
Notifies the ROZeroConf Hub that aHandle is not used anymore.
|
| ControlCommand protected |
|
Implements the IROStreamWorkerCallbacks.ControlCommand by doing nothing.
|
| CreateTCPClient protected virtual abstract |
|
Abstract method to obtain a transferring medium. See the TZeroConfHubSynapseClient as an example of an implementation.
|
| Data protected |
|
Implements IROStreamWorkerCallbacks.Data by decoding aData and triggering a waiting request.
|
| Disconnected protected |
|
Stops an internal TROStreamWorker.
|
| GetMyHostName |
|
Asks the ROZeroConf Hub to 'GetMyHostName'.
|
| LaunchHub |
|
Tries to launch the ROZeroConf Hub.
|
| QueryInterface protected virtual stdcall |
|
Delegates a call to TObject.GetInterface.
|
| RegisterService |
|
Sends a ROZeroConf Hub request to register the service with the provided parameters. When a request is done, aDelegate.RegistrationResult will be called along with the value of aUserData. Returns the host's handle of the discovered service.
|
| ResolveAddress |
|
Asks the ROZeroConf Hub for resolve an address of aFullName. When the request is done, aDelegate.ResolveAddressResult will be called along with the value of aUserData. Returns the host's handle of the discovered service.
|
| ResolveService |
|
Asks the ROZeroConf Hub to resolve aServiceName with aServiceType in aDomain. When the request is done, aDelegate.ResolveServiceResult will be called along with the value of aUserData. Returns the host's handle of the discovered service.
|
| Start |
|
Creates a TROStreamWorker class with a stream provided by the CreateTCPClient, connects the stream with a ROZeroConf Hub and an activated worker.
|
| Stop |
|
Requests the ROZeroConf Hub to close all obtained handles and deactivate the internal worker.
|
Descendants
See Also
- ZeroConf
- callbacks
- Lists
- RemObjects SDK for Delphi: Interfaces — Classes — Aliases — Implements
- RemObjects SDK shared: Data Types – File Types
- other editions
- RemObjects SDK for .NET: Namespaces — Interfaces — Classes — Enums — Implements
- RemObjects SDK for Xcode: Protocols — Classes — Enums — Aliases — Implements
- RemObjects SDK for Java: Namespaces — Interfaces — Classes — Enums — Implements
- RemObjects SDK for JavaScript: Objects

Product: RemObjects SDK
Available Editions: RemObjects SDK for .NET, Xcode, Delphi, Java and JavaScript