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 /

MLFlush()

FilledSmallSquare int MLFlush(MLINK link) flushes out any buffers containing data waiting to be sent on link.

FilledSmallSquare If you call MLNextPacket() or any of the MLGet*() functions, then MLFlush() will be called automatically.

FilledSmallSquare If you call MLReady(), then you need to call MLFlush() first in order to ensure that any necessary outgoing data has been sent.

FilledSmallSquare See Section 2.13.14.

FilledSmallSquare See also: MLReady.