Method: Rex::Socket::Tcp.create_param
- Defined in:
- lib/rex/socket/tcp.rb
.create_param(param) ⇒ Object
Wrapper around the base socket class’ creation method that automatically sets the parameter’s protocol to TCP.
35 36 37 38 |
# File 'lib/rex/socket/tcp.rb', line 35 def self.create_param(param) param.proto = 'tcp' Rex::Socket.create_param(param) end |