Immediately transmits any data buffered for sending over the link.
Any calls that read from the link will flush it, so you only need to call Flush manually if you want to make sure data is sent right away even though you are not reading from the link immediately. Calls to Ready will not flush the link, so if you are sending something and then polling Ready waiting for the result to arrive (as opposed to just calling NextPacket or WaitForAnswer), you must call Flush to ensure that the data is sent.
Exception Type | Condition |
---|---|
MathLinkException | On any MathLink error. |
IMathLink Interface | Wolfram.NETLink Namespace