Internet Direct (Indy)
Home
PreviousUpNext
TIdUDPListenerThread.UDPRead Method

Receives UDP datagram packets.

Pascal
procedure UDPRead;

UDPRead is a procedure that detects receipt of a UDP datagram in the internal read buffer for the listener thread, and performs notification of datagram packet receipt using TIdUDPServer.OnUDPRead to make the data available. UDPRead uses the Server context to notify receipt of the data from the peer IP address and port number. 

UDPRead can be called using Synchronize when the value in TIdUDPServer.ThreadedEvent for the Server context contains False.

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.