ruby socket通讯 创建server
创建clientrequire 'socket'client = TCPSocket.open('localhost', '9999')client.send("oracle\n", 0) # 0 means standard packetclient.close
require 'socket'client = TCPSocket.open('localhost', '9999')client.send("oracle\n", 0) # 0 means standard packetclient.close