ssCore.TCP.sendMsgBinary

Send a message using the open socket.


Availability:

First available in version 3.8 build 333.


Input Parameters:

data - Data, in hex string format, to send to the destination machine.


Output Parameters:

No output parameters.


Asynchronous Mode:

When this method is called asynchronously, a return object containing the output parameters is passed to the specified callback function.

ssCore.TCP.sendMsgBinary( paramsObject [, callbackParamsObject] [, errorParamsObject] );


Synchronous Mode:

This method can only be called asynchronously.


Notes:

None.

                

Examples:

// "Hello" as a hex string is "48656C6C6F"
ssCore.TCP.sendMsgBinary({data:"Hello"}, {callback:"messageSent", scope:this});

function messageSent(return_obj, callback_obj, error_obj)
{
    if (return_obj.success)
    {
        // Message was sent successfully.
    }
    else
    {
        ssDebug.trace("ERROR: "+error_obj.description);
    }
}