require 'socket'
host = "localhost"
port = 12345
TCPSocket.open(host, port) do |s| # Use block form of open
while line = s.gets
puts line.chop
end
end
用户登录
还没有账号?立即注册
用户注册
投稿取消
| 文章分类: |
|
还能输入300字
上传中....