class Proxi::TCPSocketFactory
### TCPSocketFactory
This is the most vanilla type of socket factory.
Suitable when all requests need to be forwarded to the same host and port.
Public Class Methods
new(remote_host, remote_port)
click to toggle source
# File lib/proxi/socket_factory.rb, line 10 def initialize(remote_host, remote_port) @remote_host, @remote_port = remote_host, remote_port end
Public Instance Methods
call()
click to toggle source
# File lib/proxi/socket_factory.rb, line 14 def call TCPSocket.new(@remote_host, @remote_port) end