Internet Direct (Indy)
Home
PreviousUpNext
TIdUDPServer.OnUDPRead Event

Event handler for UDP read events.

Pascal
property OnUDPRead: TUDPReadEvent;

OnUDPRead is a TUDPReadEvent event handler property that represents the event used for reading datagrams received from a socket handle. 

OnUDPRead parameters provide the server context, buffer used to store the datagram, and the binding used to receive the datagram packet. 

OnUDPRead is triggered when data has been read from a socket handle in Bindings by the listener thread, and is available for use by the server. OnUDPRead can be used to examine the incoming datagram or properties for the client connection in ABinding prior to use or re-transmission. 

Assign a TUDPReadEvent handler procedure to OnUDPRead to respond to the event notification. 

Use ThreadedEvent to determine if OnUDPRead is performed as a Synchronized method call.

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.