Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old


Sends an UDP data message.

Component Version macOS Windows Linux Server iOS SDK
Socket 3.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "Socket.SendMessageHex"; SocketID; IP; Port; Text )   More


Parameter Description Example
SocketID The socket ID received by Socket.Connect function. $sock
IP The target IP or name. ""
Port The target port to send to. 9000
Text The text to send in hex encoding. "48656C6C6F"


Returns the number of bytes written or an error message.


Sends an UDP data message.
Text here is expected to be always hex encoded data.


Write some text:

MBS( "Socket.SendMessageHex"; $sock; "48656C6C6F" )

See also

Release notes

  • Version 14.1
    • Fixed a problem with Socket.SendMessageHex function.

This function checks for a license.

Created 18th August 2014, last changed 31st January 2024

Socket.SendMessage - Socket.SetBroadcast

💬 Ask a question or report a problem