TROZeroConfService Class

This is a Library topic for RemObjects SDK for Delphi
This page is generated from external data, please do not update
Interfaces — Classes — Aliases — Implements
Contents |
Overview
The TROZeroConfService class is used to hold information about discovered services in the ZeroConf environment. A TROZeroConfBrowser uses it to represent the service when informed about added and removed services via OnServiceAdded and OnServiceRemoved. You may use this class to gain access to specific information about discovered services with the Resolve and TryResolve methods.
Note: Take a look at the BonjourDiscovery sample shipped with the RemObjects SDK to see service discovery in action.
Location
uROZeroConf.pas
Properties
| Address |
|---|
|
Holds the server IP address. If the host is not resolved yet, the Exception 'Not resolved yet' will be raised when you try access this property.
|
| DefEngine |
|
The value of the TROZeroConfEngine which is used choose an IZeroConfResolveStrategy implementation.
|
| Domain |
|
Holds information about the service domain.
|
| FullDomainName |
|
Holds the full name of the domain. If the host is not resolved yet, the Exception 'Not resolved yet' will be raised when you try access this property.
|
| HostTarget |
|
Holds the target server host name. If the host is not resolved yet, the Exception 'Not resolved yet' will be raised when you try access this property.
|
| IP4Address |
|
Holds the server IP address in an IPv4 form (empty if ResolvedIP4 if False). If the host is not resolved yet, the Exception 'Not resolved yet' will be raised when you try access this property.
|
| IP6Address |
|
Holds the server IP address in an IPv6 form (empty if ResolvedIP6 if False). If the host is not resolved yet, the Exception 'Not resolved yet' will be raised when you try access this property.
|
| Port |
|
Specifies the port that is used by the server that hosts the current service. If the host is not resolved yet, the Exception 'Not resolved yet' will be raised when you try access this property.
|
| Resolved |
|
Indicates if the server adress and port are already resolved.
|
| ResolvedEngine |
|
Reports which TROZeroConfEngine was used to resolve the service. If the host is not resolved yet, the Exception 'Not resolved yet' will be raised when you try access this property.
|
| ResolvedIP4 |
|
Indicates if the server adress is in IPv4 form. If the host is not resolved yet, the Exception 'Not resolved yet' will be raised when you try access this property.
|
| ResolvedIP6 |
|
Indicates if the server adress is in IPv6 form. If the host is not resolved yet, the Exception 'Not resolved yet' will be raised when you try access this property.
|
| ServiceName |
|
Holds the name of the service.
|
| ServiceType |
|
Holds the service type name.
|
| TextRecord |
|
Returns a string in form of name=value pairs delimited by carriage returns and line feeds. It holds additional information received from the server and may be used to obtain additional information like server channel and message type etc. If the host is not resolved yet, the Exception 'Not resolved yet' will be raised when you try access this property.
|
Instance Methods
| constructor Create |
|---|
|
Initializes the instance with the given values.
|
| Resolve () overload |
|
Resolves a domain and the service type and -name to a real address and port with a 10 second timeout. If the resolve operation was terminated by timeout or if the server returns an error, an Exception will be raised.
|
| Resolve (integer) overload |
|
Resolves a domain and the service type and -name to a real address and port with the provided timeout (in seconds). If the resolve operation was terminated by timeout or if the server returns an error, an Exception will be raised.
|
| TryResolve (): boolean overload |
|
Tries to resolve a domain and the service type and -name to a real address and port with a 10 second timeout. If the resolve operation was terminated by timeout or if the server returns an error, this method will return False.
|
| TryResolve (integer): boolean overload |
|
Tries to resolve a domain and the service type and -name to a real address and port with the provided timeout (in seconds). If the resolve operation was terminated by timeout or if the server returns an error, this method will return False.
|
See Also
- ZeroConf
- IZeroConfResolveStrategy
- TROZeroConfBrowser
- TROZeroConfEngine
- Server (RemObjects SDK)
- Services (Service Builder)
- Lists
- RemObjects SDK for Delphi: Interfaces — Classes — Aliases — Implements
- RemObjects SDK shared: Data Types – File Types
- other editions
- RemObjects SDK for .NET: Namespaces — Interfaces — Classes — Enums — Implements
- RemObjects SDK for Xcode: Protocols — Classes — Enums — Aliases — Implements
- RemObjects SDK for Java: Namespaces — Interfaces — Classes — Enums — Implements
- RemObjects SDK for JavaScript: Objects

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