lib/ronin/network/mixins/tcp.rb in ronin-support-0.4.0.rc1 vs lib/ronin/network/mixins/tcp.rb in ronin-support-0.4.0.rc2

- old
+ new

@@ -1,7 +1,7 @@ # -# Copyright (c) 2006-2011 Hal Brodigan (postmodern.mod3 at gmail.com) +# Copyright (c) 2006-2012 Hal Brodigan (postmodern.mod3 at gmail.com) # # This file is part of Ronin Support. # # Ronin Support is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published @@ -81,13 +81,14 @@ # # @example # tcp_connect # => TCPSocket # # @example - # tcp_connect do |sock| - # sock.write("GET /\n\n") - # puts sock.readlines - # sock.close + # tcp_connect do |socket| + # socket.write("GET /\n\n") + # + # puts socket.readlines + # socket.close # end # # @api public # def tcp_connect(&block)