TROCustomDiscoveryClient

From RemObjects Software

Jump to: navigation, search

This is a RemObjects SDK Architecture entry
Feel free to add your notes to this topic below.



Overview

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

File

  • uRODiscovery

Declaration

TROCustomDiscoveryClient = class(TROComponent, IROBroadcastNotification)

Hierarchy

Properties

Property
Type
Description
Channel TROBroadcastChannel The TROBroadcastChannel to use to locate servers.
Message TROMessage The message format to use to talk to the servers.
ServerList TStrings 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.

ServiceName String The service name to look for on the local network.


Methods

Method
Description
RefreshServerList Performs a network broadcast to find new servers.

If needed, a user-defined TRODiscoveryOptions descendant class 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.


Events

Event
Description
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.

OnNewServiceFound Fires whenever the ServerList has been updated; whether new servers have been found or old servers have been removed.
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 .


See Also


Product: RemObjects SDK
Current version: RemObjects SDK 'Vinci' (5.0)

ListsGlossaryFeaturesHow ToComponentsToolsSamplesArticlesArchitectureIssues

Personal tools