TRODiscoveryService
Overview
The TRODiscoveryService class implements a service to support the server side of the local network server discovery infrastructure. The stub of this class was generated automatically from the corresponding RODL file.
This class is not intended for direct use, it is used internally by the TROCustomDiscoveryServer.
Location
- Unit: uRODiscoveryService_Impl.pas
- Ancestry: TROInterfacedObject | TRORemotable | TRODiscoveryService
constructor Create overload virtual (declared in TRORemotable)
Creates a new instance.
constructor Create
constructor Create (TObject) overload (declared in TRORemotable)
Creates a new instance with a supplied value.
constructor Create(aOwner: TObject)
Parameters:
- aOwner:
FindService protected virtual
Method to locate the service server IP address based on the service name.
function FindService(const iName: ROAnsiString; var ioServerOptions: TRODiscoveryOptions): ROAnsiString
Parameters:
- iName: Name of the service
- ioServerOptions: This object (TRODiscoveryOptions instance) can be used to extend the service discovery infrastructure functionality and pass custom parameters to the server and back. The base implementation is the class with no members beyond the TROComplexType.
IsRetained protected (declared in TRORemotable)
Returns true if anObject
is retained by Self
.
function IsRetained(const anObject: TObject): Boolean
Parameters:
- anObject: Object to check
NewInstance override (declared in TROInterfacedObject)
Creates and returns a new instance of the interfaced object, initializing its reference counter with 1.
class function NewInstance: TObject
RefCount (declared in TROInterfacedObject)
Provides read-only access to the reference counter. When this value reaches zero, the object is freed.
property RefCount: Integer read
ReleaseObject protected (declared in TRORemotable)
Takes away the hold of anObject
set by RetainObject.
procedure ReleaseObject(const anObject: TObject)
Parameters:
- anObject: Object to release
RetainObject protected (declared in TRORemotable)
Sets the hold of anObject
.
procedure RetainObject(const anObject: TObject)
Parameters:
- anObject: Object to hold
RefCount (declared in TROInterfacedObject)
Provides read-only access to the reference counter. When this value reaches zero, the object is freed.
property RefCount: Integer read
NewInstance override (declared in TROInterfacedObject)
Creates and returns a new instance of the interfaced object, initializing its reference counter with 1.
class function NewInstance: TObject
constructor Create overload virtual (declared in TRORemotable)
Creates a new instance.
constructor Create
constructor Create (TObject) overload (declared in TRORemotable)
Creates a new instance with a supplied value.
constructor Create(aOwner: TObject)
Parameters:
- aOwner:
FindService protected virtual
Method to locate the service server IP address based on the service name.
function FindService(const iName: ROAnsiString; var ioServerOptions: TRODiscoveryOptions): ROAnsiString
Parameters:
- iName: Name of the service
- ioServerOptions: This object (TRODiscoveryOptions instance) can be used to extend the service discovery infrastructure functionality and pass custom parameters to the server and back. The base implementation is the class with no members beyond the TROComplexType.
IsRetained protected (declared in TRORemotable)
Returns true if anObject
is retained by Self
.
function IsRetained(const anObject: TObject): Boolean
Parameters:
- anObject: Object to check
ReleaseObject protected (declared in TRORemotable)
Takes away the hold of anObject
set by RetainObject.
procedure ReleaseObject(const anObject: TObject)
Parameters:
- anObject: Object to release
RetainObject protected (declared in TRORemotable)
Sets the hold of anObject
.
procedure RetainObject(const anObject: TObject)
Parameters:
- anObject: Object to hold