TRODiscoveryClient Class

From RemObjects Wiki
Jump to: navigation, search

This is a Library topic for RemObjects SDK for Delphi
This page is generated from external data, please do not update

InterfacesClassesAliasesImplements

Contents

Overview

This class implements the client side of the local network server discovery infrastructure in RemObjects SDK.


Location

uRODiscovery.pas


Properties

Channel

Channel which will be used to locate servers.



property Channel:


Message

Defines the message format to use to talk to the servers.



property Message:


OnDiscoveryException

Fires if any exception was raised while probing for servers.If an event handler is assigned, exceptions will not be re-raised after the event handler has executed.



property OnDiscoveryException:


OnNewServersFound

Fires whenever the ServerList has been updated; whether new servers have been found or old servers have been removed.



property OnNewServersFound:


OnNewServiceFound

Fires whenever a new server responded to the broadcast.The event gets passed the server name, as well as any user-specific TRODiscoveryOptions that might have been returned from the server. The event gets fired before the newly found server is added to the ServerList.



property OnNewServiceFound:


ServerList

Contains the list of servers that have been found to provide the requested Service. Call the RefreshServerList to (re)query the network and find new servers.



property ServerList:


ServiceName

Specifies the Service name to look for on the local network.



property ServiceName:


Instance Methods

constructor Create   override     (declared in TROCustomDiscoveryClient)



constructor Create(aOwner: TComponent)


Parameters:

  • aOwner:


destructor Destroy   override     (declared in TROCustomDiscoveryClient)



destructor Destroy


Assign   override     (declared in TROCustomDiscoveryClient)



procedure Assign(Source: TPersistent)


Parameters:

  • Source:


CheckProperties     (declared in TROCustomDiscoveryClient)



procedure CheckProperties


Notification   protected override     (declared in TROCustomDiscoveryClient)



procedure Notification(aComponent: TComponent; aOperation: TOperation)


Parameters:

  • aComponent:
  • aOperation:


RefreshServerList     (declared in TROCustomDiscoveryClient)

Performs a network broadcast to find new servers. If needed, a user-defined TRODiscoveryOptions descendant might be passed to the server to provide additional details or requirements for the desired service.

As responses from servers come in, the ServerList property is filled and the OnNewServiceFound and OnNewServersFound events are fired.


procedure RefreshServerList(aDiscoveryOptions: TRODiscoveryOptions)


Parameters:

  • aDiscoveryOptions:


ROFreeNotification     (declared in TROComponent)



procedure ROFreeNotification(AComponent: TComponent)


Parameters:

  • AComponent:


RORemoveFreeNotification     (declared in TROComponent)



procedure RORemoveFreeNotification(AComponent: TComponent)


Parameters:

  • AComponent:


SendRemoveNotification   protected     (declared in TROComponent)



procedure SendRemoveNotification(AComponent: TComponent)


Parameters:

  • AComponent:


Events

OnDiscoveryException     (declared in TROCustomDiscoveryClient)

Fires if any exception was raised while probing for servers. If an event handler is assigned, exceptions will not be re-raised after the event handler has executed.



property OnDiscoveryException: TRODiscoveryException read write delegate: procedure Invoke(aSender: TObject; aException: Exception)


OnNewServersFound     (declared in TROCustomDiscoveryClient)



property OnNewServersFound: TNotifyEvent read write


OnNewServiceFound     (declared in TROCustomDiscoveryClient)

Fires whenever the ServerList has been updated; whether new servers have been found or old servers have been removed.



property OnNewServiceFound: TRODiscoveryNewServiceFoundEvent read write delegate: procedure Invoke(aSender: TObject; aName: string; aDiscoveryOptions: TRODiscoveryOptions)


See Also


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

GlossaryArticlesLibrarySamples

Personal tools
Namespaces

Variants
Actions
Navigation
products
platforms
special
Toolbox