Sha256: bd0d5b5b4dd7d68b9cc351d5da0949f148b082b4271fc40c23f6fc4a07b5ce21

Contents?: true

Size: 327 Bytes

Versions: 13

Compression:

Stored size: 327 Bytes

Contents

Creating a TCP Socket to a specified host and port:

    socket = tcp_connect('www.example.com',25)
    # => #<TCPSocket:0xb7bbde6c>

Or create a temporary TCP Socket that automatically closes:

    tcp_connect('www.example.com',1212) do |socket|
      socket.write("this is just a test\n")
      puts socket.readline
    end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
ronin-2.1.0 data/tips/scripting/tcp_connect.txt
ronin-2.1.0.rc1 data/tips/scripting/tcp_connect.txt
ronin-2.0.5 data/tips/scripting/tcp_connect.txt
ronin-2.0.4 data/tips/scripting/tcp_connect.txt
ronin-2.0.3 data/tips/scripting/tcp_connect.txt
ronin-2.0.2 data/tips/scripting/tcp_connect.txt
ronin-2.0.1 data/tips/scripting/tcp_connect.txt
ronin-2.0.0 data/tips/scripting/tcp_connect.txt
ronin-2.0.0.beta5 data/tips/scripting/tcp_connect.txt
ronin-2.0.0.beta4 data/tips/scripting/tcp_connect.txt
ronin-2.0.0.beta3 data/tips/scripting/tcp_connect.txt
ronin-2.0.0.beta2 data/tips/scripting/tcp_connect.txt
ronin-2.0.0.beta1 data/tips/scripting/tcp_connect.txt