Message-oriented TCP sockets in Ruby and C.