TROHubResolveStrategy Class

From RemObjects Wiki

Jump to:navigation, search
Delphi Platform Header-48.png

This is a RemObjects SDK for Delphi Library topic

Please do not modify the page structure, but feel free to modify/add text.

ClassesProtocolsEnums

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


Instance Methods

constructor Create


constructor Create(aEngine: TROZeroConfResolveEngine;const AHubClientClass: TZeroConfHubClientClass)
Parameters:

  • aEngine:
  • AHubClientClass:


destructor Destroy     override


procedure dtor Destroy

GetCurrentEngineType     protected override


function GetCurrentEngineType: TROZeroConfEngine

Resolve     protected override


procedure Resolve(aTimeout: integer)
Parameters:

  • aTimeout:


TryResolve     protected override


function TryResolve(aTimeout: integer): Boolean
Parameters:

  • aTimeout:



See Also


Ro-48.png

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

GlossaryArchitectureArticlesFeaturesLibrarySamples

Navigation
products
hubs
special
Toolbox