TROHubResolveStrategy Class
From RemObjects Wiki
This is a RemObjects SDK for Delphi Library topic
Please do not modify the page structure, but feel free to modify/add text.
Contents |
Overview
TROHubResolveStrategy is a class that implements methods required for resolving a domain as well as a service type and name to a real address and port. It is used internally by the TROZeroConfResolveEngine when the ROZeroConf Hub is used as service discovery provider.
Use Case
When a server is discovered, you need to obtain its address and port. You can do this by calling the TROZeroConfService's Resolve or TryResolve methods. The only difference between these methods is that Resolve will raise an EROZeroConfHubException if the resolve operation was terminated by time out or if the server returns an error; TryResolve supresses this exception and returns "false".
Location
uROZeroConf.pas
- TInterfacedObject
- TROBaseZeroConfResolveStrategy
- TROHubResolveStrategy
- TROBaseZeroConfResolveStrategy
Instance Methods
| constructor Create |
|---|
|
|
| destructor Destroy override |
|
|
| GetCurrentEngineType protected override |
|
|
| Resolve protected override |
|
|
| TryResolve protected override |
|
|
See Also
- Lists
- RemObjects SDK for Delphi: Interfaces – Classes – Enums
- RemObjects SDK shared: Data Types – File Types
- other editions
- RemObjects SDK for .NET: Namespaces – Interfaces – Classes – Enums
- RemObjects SDK for Xcode: Protocols – Classes – Enums
Product: RemObjects SDK
Available Editions: RemObjects SDK for .NET, Delphi and Xcode
Glossary — Architecture — Articles — Features — Library — Samples