Internet Direct (Indy)
Home
PreviousUpNext
TIdUDPServer.OnUDPException Event

Event handler for exceptions raised in the listener thread for the UDP server.

Pascal
property OnUDPException: TIdUDPExceptionEvent;

OnUDPException is a TIdUDPExceptionEvent event handler property used to perform event-based notifications when an exception occurs in the listener thread for the UDP server. 

Parameters passed to the event handler identify the server binding generating the exception, and the message and class type for the exception. 

Set ThreadedEvent to indicate if the exception handler runs in the context of the client connection, or must be synchronized to the main VCL thread. 

OnUDPException is signalled from the TIdUDPListenerThread.UDPException method. 

OnUDPException can be used to perform logging and server management based on the type and content for the exception encountered.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.