Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

methodTsnipServerTLSOctetConnection.WaitData

function WaitData(aMSec: Cardinal): TsnipWaitOutcome;
Blocks until a complete inbound snip frame is buffered, aMSec expires, or the connection ends, and says WHICH. The serving loop calls this instead of spinning on HasData, and needs all three answers: a Boolean cannot tell it "nothing yet, go round and re-read your stop flag" apart from "this connection is finished", and treating the first as the second would close every quiet connection. Pass cSnipNoTimeout to wait for ever.