MLPutMessage has been replaced by WSPutMessage.

int MLPutMessage(MLINK link,int msg)

sends the message msg to the link object link.


  • MathLink messages provide out-of-band message sending and receiving that is not tied to the normal transfer of data.
  • MLPutMessage() returns 0 in the event of an error, and a nonzero value if the function succeeds.
  • Use MLError() to retrieve the error code if MLPutMessage() fails.
  • MLPutMessage() is declared in the MathLink header file mathlink.h.


Basic Examples  (1)

#include "mathlink.h"

/* send an abort message to a link */

void f(MLINK lp)
    if(! MLPutMessage(lp, MLAbortMessage))
        { /* unable to send message to lp */ }

See Also

MLPutMessageWithArg()  MLMessageReady()  MLGetMessage()  MLSetMessageHandler()  MLGetMessageHandler()