I’m dabbling in something that I have little to no understanding of
(network programming), but would one of you happen to have Ruby code for
a simple, transparent TCP proxy, that can also handle multiple connections?
Thanks kindly in advance,
Michael
http://raa.ruby-lang.org/list.rhtml?name=sentinel
It does not handle multiple connections but you can get the idea.
Now I see the project page does not exist any more. I am going to send the
code to your private address - it is just about 3 kB.
Dalibor
···
On Sun, May 09, 2004 at 08:43:58PM +0900, Michael Vondung wrote:
I’m dabbling in something that I have little to no understanding of
(network programming), but would one of you happen to have Ruby code for
a simple, transparent TCP proxy, that can also handle multiple connections?
–
Dalibor Sramek insula.cz | In the eyes of cats,
dalibor.sramek@insula.cz | all things belong to cats.
Michael Vondung wrote:
I’m dabbling in something that I have little to no understanding of
(network programming), but would one of you happen to have Ruby code for
a simple, transparent TCP proxy, that can also handle multiple
connections?
Does this have to be Ruby ? I mean there are ssh tunnels for free… But
maybe you have a good reason for wanting to do it this way, then ignore
this remark.
kaspar
semantics & semiotics
code manufacture
www.tua.ch/ruby
Dalibor Sramek wrote:
It does not handle multiple connections but you can get the idea.
Now I see the project page does not exist any more. I am going to send the
code to your private address - it is just about 3 kB.
Thank you! I’m glad I actually do check my spamtrap account every once
in a while and make sure that it doesn’t overflow. In case the script
is of interest to anyone else, I’ve uploaded it here:
http://similarities.org/ruby/scripts/sentinel.rb
The script works well. The only trouble with it is that it uses 98-100%
of the CPU time on an XP machine. I’ll need to fiddle a bit with this
(very open for suggestions on how to fix ir).
Again, my thanks!
Michael