TApxModem.OnModemDisconnect

TApxModem

property OnModemDisconnect : TModemNotifyEvent
TModemNotifyEvent = procedure(
  Modem : TApxCustomModem) of object;

Defines an event handler that is generated when a connection is terminated.

The OnModemDisconnect event is generated when the TApxModem detects the connection has been terminated. When the TApxModem detects that the connection has been established, a status trigger monitoring for changes in DCD is installed. When DCD is lowered, the connection is considered terminated, and the OnModemDisconnect event is generated. This event is also generated when the CancelCall method successfully terminates the connection.

Modem is the TApxCustomModem that generated the event. No other parameters are provided.

Note that some devices and protocols routinely toggle DCD. For these situations, consult the device and protocol documentation for details on detecting connection termination.

See also: AutoAnswer, ConfigAndOpen, Dial, OnModemConnect