Try this Ruby on for size!!
Yeah... I LOVE RUBY!!!Code:require "socket";$m=TCPServer.open("10.0.0.2", 4444);while true; Thread.start($m.accept) do |s|;while s.gets("\0");s.write($_);end;s.close;end;end
:)
Printable View
Try this Ruby on for size!!
Yeah... I LOVE RUBY!!!Code:require "socket";$m=TCPServer.open("10.0.0.2", 4444);while true; Thread.start($m.accept) do |s|;while s.gets("\0");s.write($_);end;s.close;end;end
:)
I guess I could have left a ton of things out even then.. if all you wanted was to connect with one SWF, and not multiple...
So... it will only accept one connection - and it exits when the client leaves...Code:require "socket";s=TCPServer.open("10.0.0.2",4444).accept;loop{;s.gets("\0");s.write($_);};
91 characters!!!
... I know I've found the perfect language!
:)
Oo Ruby?
What kind of scripting language is that? And what program did you use to make it?
..just curious..