We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Would love if this could be threadsafe, often want a few tcp sockets open at same time, some via socks and some not
The text was updated successfully, but these errors were encountered:
Propose an API.
Then it won't be a long shot for a commit.
Sorry, something went wrong.
@tigris socksify-ruby can do this, altough interface is ugly a bit. It's kind of undocumented feature.
require 'socksify' addr = TCPSocket::SOCKSConnectionPeerAddress.new("<socks host>", <socks port>, "<peer host>") s = TCPSocket.new(addr, <peer port>) # Proceed as usual.
Something like this would be nice:
require 'socksify' # Create a new socksified connection socksified_connection = Socksify::Connection.new(socks_host: "<socks host>", socks_port: <socks port>, peer_host: "<peer host>", peer_port: <peer port>) # Use the connection as a regular TCPSocket socksified_connection.write("data") response = socksified_connection.read socksified_connection.close
No branches or pull requests
Would love if this could be threadsafe, often want a few tcp sockets open at same time, some via socks and some not
The text was updated successfully, but these errors were encountered: