TTMSMCPClientServers Class
Collection of the servers a client talks to. Besides holding the entries it can load and save the whole list as a configuration file and find the entry that publishes a given tool.
API unit family: TMS.MCP.Client
Inherits from: TOwnedCollection
Syntax
TTMSMCPClientServers = class(TOwnedCollection)
Properties
Name
Description
Items
Provides indexed access to the server entries in the collection.
Methods
Name
Description
Add
Appends a new, unconfigured server entry to the collection.
GetByToolName
Finds the server entry whose published tool catalog contains a tool with the given name.
Insert
Inserts a new, unconfigured server entry at the given position.
LoadFromJSONFile
Replaces the collection with the server list stored in a configuration file, reading it as UTF-8.
SaveToJSONFile
Writes the server list to a configuration file, encoded as UTF-8.
Events
Name
Description
OnToolsChanged
Occurs when one of the server entries reports that its tool catalog has been received or has changed.
Used by