| Class | EventMachine::Protocols::Socks4 |
| In: |
lib/em/protocols/socks4.rb
|
| Parent: | Connection |
Basic SOCKS v4 client implementation
Use as you would any regular connection:
class MyConn < EM::P::Socks4
def post_init
send_data("sup")
end
def receive_data(data)
send_data("you said: #{data}")
end
end
EM.connect socks_host, socks_port, MyConn, host, port