fsockopen-method in ROR

Hi,

PHP has 'fsockopen'-function to create a socket connection. With what function I can create this connection in ROR?

Thanks im Advance

http://www.tutorialspoint.com/ruby/ruby_socket_programming.htm

http://www.ruby-doc.org/stdlib/libdoc/socket/rdoc/

http://www.example-code.com/ruby/rubysocket.asp

and of course, a simple google search would have given you the same list of links:

http://www.google.com/search?client=safari&rls=en&q=ruby+socket

Best regards

Peter De Berdt

Thanks.