From: Eugeni Akmuradov Date: 2010-12-07T17:29:08+09:00 Subject: Re: Vortex Level0 with Ruby thanx, but i also dont't get this part > class Socket > def self.open(*args) # 'cuz I don't like ugly > f = self.class.new(*args) > yield f > f.close > end > end is it absolutely necessary ? TCPSocket.open("vortex.labs.overthewire.org", 5842) do |s| auth = s.read(16).unpack("V4").inject { |sum, n| sum + n } s.write [auth].pack("V") pass = s.read p pass end -- Posted via http://www.ruby-forum.com/.