I want to send messages between Ruby processes via TCP without using ending chars that could restrict the potential message content. That rules out the naïve socket.puts/gets approach.
Is there a basic TCP message implementation somewhere in the standard libs?.
(I’d like to avoid Drb to keep everything simple.)
I want to send messages between Ruby processes via TCP without using ending chars
Share
It seems like there is no canonical, reusable solution.
So here’s a basic implementation for the archives: