This is documentation for Mathematica 5, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

Documentation / Mathematica / The Mathematica Book / Mathematica Reference Guide / Listing of C Functions in the MathLink Library /

MLReady()

FilledSmallSquare int MLReady(MLINK link) tests whether there is data ready to be read from link.

FilledSmallSquare Analogous to the Mathematica function LinkReadyQ.

FilledSmallSquare MLReady() is often called in a loop as a way of polling a MathLink connection.

FilledSmallSquare MLReady() will always return immediately, and will not block.

FilledSmallSquare You need to call MLFlush() before starting to call MLReady().

FilledSmallSquare See Section 2.13.14.