How can I send a NULL in Ruby Sockets? -


I am working on socket app in Ruby Shoes, and want to send a message to the server. The server expects XML messages, and then a zero (0) character.

How can I send it to the TCP socket in Ruby?

Thank you.

I got my answer ... The problem was not sending the tap, it was a thread problem.

You can send a null as part of a string as part of a string ...

NULL = "000"

... tc = tc + "& lt; / endtag>"

tc = tc + null

socket. Send (tc, 0)


Comments