TROZeroConfRegistration
Overview
The TROZeroConfRegistration component class is used to publish RO servers via ZeroConf facilities. It is necessary to instantiate the class object (drop the component to a form or create programmatically), set its properties and make some changes to the service code. Read more.
Location
- Unit: uROZeroConf.pas
- Ancestry: TComponent | TROComponent | TROBaseZeroConf | TROZeroConfRegistration
constructor Create override
Standard component constructor
constructor Create(AOwner: TComponent)
Parameters:
- AOwner: Owner
Assign override
Copies the contents of another, similar object.
procedure Assign(Source: TPersistent)
Parameters:
- Source: Instance whose properties will be copied
Domain (declared in TROBaseZeroConf)
Represents the domain name in which the LAN or WLAN services will be discovered.
property Domain: UnicodeString read write
IsRegistrationFailed
This property indicates if the most recent registration attempt failed. Notice that the registration process may require some time to complete; wait for a period of time before analyzing this property value.
property IsRegistrationFailed: Boolean read
Notification protected override
Forwards notification messages to all owned components.
procedure Notification(AComponent: TComponent; Operation: TOperation)
Parameters:
- AComponent: component
- Operation: operation
OnRegistrationFailed
This event is fired in case of a failed registration. Subscribe to it if you need to perform some action in case of failed registrations.
The ACurrentEngine parameter allows to determine which ZeroConf facility was used, anException allows to examine the exception thrown during the registration process.
property OnRegistrationFailed: TROZeroConfRegistrationFailedEvent read write
delegate: procedure OnRegistrationFailed(Sender: TROZeroConfRegistration; const ACurrentEngine: TROZeroConfEngine; anException: Exception)
OnRegistrationSucceeded
This event is fired in case of a successful registration. Subscribe to it if you need to be sure the registration was successful.
The ACurrentEngine parameter allows to determine which ZeroConf facility was used.
property OnRegistrationSucceeded: TROZeroConfRegistrationSuccessEvent read write
delegate: procedure OnRegistrationSucceeded(Sender: TROZeroConfRegistration; const ACurrentEngine: TROZeroConfEngine)
ROFreeNotification (declared in TROComponent)
Forwards notification messages to all owned components.
procedure ROFreeNotification(aComponent: TComponent)
Parameters:
- aComponent: component
RORemoveFreeNotification (declared in TROComponent)
Forwards notification messages to all owned components.
procedure RORemoveFreeNotification(aComponent: TComponent)
Parameters:
- aComponent: component
SendRemoveNotification protected (declared in TROComponent)
Forwards notification messages to all owned components.
procedure SendRemoveNotification(aComponent: TComponent)
Parameters:
- aComponent: component
Server
Points to the server channel instance which is used by the server being published via ZeroConf.
property Server: TROServer read write
ServerName
Reserved, do not use.
property ServerName: UnicodeString read write
TriggerFailed protected override
Triggers the RegistrationFailed event.
procedure TriggerFailed(const aCurrentEngine: TROZeroConfEngine; anException: Exception)
Parameters:
- aCurrentEngine: Current engine
- anException: Current exception
Domain (declared in TROBaseZeroConf)
Represents the domain name in which the LAN or WLAN services will be discovered.
property Domain: UnicodeString read write
IsRegistrationFailed
This property indicates if the most recent registration attempt failed. Notice that the registration process may require some time to complete; wait for a period of time before analyzing this property value.
property IsRegistrationFailed: Boolean read
Server
Points to the server channel instance which is used by the server being published via ZeroConf.
property Server: TROServer read write
ServerName
Reserved, do not use.
property ServerName: UnicodeString read write
constructor Create override
Standard component constructor
constructor Create(AOwner: TComponent)
Parameters:
- AOwner: Owner
Assign override
Copies the contents of another, similar object.
procedure Assign(Source: TPersistent)
Parameters:
- Source: Instance whose properties will be copied
Notification protected override
Forwards notification messages to all owned components.
procedure Notification(AComponent: TComponent; Operation: TOperation)
Parameters:
- AComponent: component
- Operation: operation
ROFreeNotification (declared in TROComponent)
Forwards notification messages to all owned components.
procedure ROFreeNotification(aComponent: TComponent)
Parameters:
- aComponent: component
RORemoveFreeNotification (declared in TROComponent)
Forwards notification messages to all owned components.
procedure RORemoveFreeNotification(aComponent: TComponent)
Parameters:
- aComponent: component
SendRemoveNotification protected (declared in TROComponent)
Forwards notification messages to all owned components.
procedure SendRemoveNotification(aComponent: TComponent)
Parameters:
- aComponent: component
TriggerFailed protected override
Triggers the RegistrationFailed event.
procedure TriggerFailed(const aCurrentEngine: TROZeroConfEngine; anException: Exception)
Parameters:
- aCurrentEngine: Current engine
- anException: Current exception
OnRegistrationFailed
This event is fired in case of a failed registration. Subscribe to it if you need to perform some action in case of failed registrations.
The ACurrentEngine parameter allows to determine which ZeroConf facility was used, anException allows to examine the exception thrown during the registration process.
property OnRegistrationFailed: TROZeroConfRegistrationFailedEvent read write
delegate: procedure OnRegistrationFailed(Sender: TROZeroConfRegistration; const ACurrentEngine: TROZeroConfEngine; anException: Exception)
OnRegistrationSucceeded
This event is fired in case of a successful registration. Subscribe to it if you need to be sure the registration was successful.
The ACurrentEngine parameter allows to determine which ZeroConf facility was used.
property OnRegistrationSucceeded: TROZeroConfRegistrationSuccessEvent read write
delegate: procedure OnRegistrationSucceeded(Sender: TROZeroConfRegistration; const ACurrentEngine: TROZeroConfEngine)