Page History
...
If you are connected to the SRP Engine Service, you SEND_SES instead, which sends the string's length to the service prior to sending the string itself.
Example
Code Block |
---|
// Connect to a local socket, send data, and then close TcpClientHandle = 0 If SRP_TcpClient(TcpClientHandle, "CONNECT", "127.0.0.1", "7777") then // Send the string length in binary SRP_TcpClient(TcpClientHandle, "SEND", \0000000D\) // Send the string SRP_TcpClient(TcpClientHandle, "SEND", "Hello, World!") // Close SRP_TcpClient(TcpClientHandle, "CLOSE") end |