Method: Rex::Socket::Tcp.create

Defined in:
lib/rex/socket/tcp.rb

.create(hash = {}) ⇒ Object

Creates the client using the supplied hash.



26
27
28
29
# File 'lib/rex/socket/tcp.rb', line 26

def self.create(hash = {})
  hash['Proto'] = 'tcp'
  self.create_param(Rex::Socket::Parameters.from_hash(hash))
end