Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Writes text to the socket.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Socket | 3.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example | Flags |
---|---|---|---|
SocketID | The socket ID received by Socket.Connect function. | $sock | |
Text | The text to send. | "Hello World" | |
Encoding | The text encoding for text parameter. Default is native. Possible encoding names: ANSI, ISO-8859-1, Latin1, Mac, Native, UTF-8, DOS, Hex, Base64 or Windows. More listed in the FAQ. |
"UTF8" | Optional |
Returns the number of bytes written or an error message.
Write something:
MBS( "Socket.WriteMLLP"; $sock; "Hello World" )
Write something with DOS text encoding:
MBS( "Socket.WriteMLLP"; $sock; "Umlauts: äöü"; "DOS" )
This function checks for a license.
Created 18th August 2014, last changed 31st August 2020