L
Luckystr Luckystr
Code:
#!/usr/bin/ruby
require "socket"
require "timeout"
socket=TCPSocket.new('192.168.56.101',23)
puts "socket=#{socket}"
if !socket.closed?
mes=socket.gets
end
socket.close
puts mes
[code]
Script can't finish getting message, how can i get Ñertain quantity of
bytes without waiting the message end ?