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

 

constructor Create  override

Creates a new instance.

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 write

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 RO components.

procedure ROFreeNotification(AComponent: TComponent)

Parameters:

  • AComponent: component

RORemoveFreeNotification    (declared in TROComponent)

Disables destruction notification for specified RO component.

procedure RORemoveFreeNotification(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 write

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

Creates a new instance.

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

ROFreeNotification    (declared in TROComponent)

Forwards notification messages to all owned RO components.

procedure ROFreeNotification(AComponent: TComponent)

Parameters:

  • AComponent: component

RORemoveFreeNotification    (declared in TROComponent)

Disables destruction notification for specified RO component.

procedure RORemoveFreeNotification(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)

See Also

  • ZeroConf