procedure ProcessCommunications;
Calls the internal dispatcher one time.
An application may call this routine if it needs to receive data during lengthy "tight loop" processing.
Note that ProcessCommunications is provided for those cases where an application must wait (for timing reasons) for a particular response. Normally, an application would use OnTriggerAvail and OnTriggerData event handlers to wait for data.
The following example sends a string and waits for a response:
ET : EventTimer;
S : string;
...
S := '';
ApxComPort.Output := 'login:';
NewTimer(ET, 10000);
repeat
ApxComPort.ProcessCommunications;
if ApxComPort.CharReady then
S := S + ApxComPort.GetChar;
until (S = 'ABC') or TimerExpired(ET);
See also: AddDataTrigger