# Fsockopen-method in ROR

**URL:** <https://www.ruby-forum.com/t/fsockopen-method-in-ror/197011>\
**Category:** Rails\
**Created:** [October 27, 2009, 9:15am UTC](https://www.ruby-forum.com/t/fsockopen-method-in-ror/197011 "2009-10-27T09:15:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![simo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/90db22/32.png) [@simo](https://www.ruby-forum.com/u/simo)\
**Post date:** [October 27, 2009, 9:15am UTC](https://www.ruby-forum.com/t/fsockopen-method-in-ror/197011/1 "2009-10-27T09:15:31Z")

</div>

Hi,

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

Thanks im Advance

---

<div class="post-metadata">

**Author:** ![simo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/90db22/32.png) [@simo](https://www.ruby-forum.com/u/simo)\
**Post date:** [October 27, 2009, 9:32am UTC](https://www.ruby-forum.com/t/fsockopen-method-in-ror/197011/2 "2009-10-27T09:32:15Z")

</div>

On 27 Oct 2009, at 09:15, Simoha S. wrote:

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

> **[Ruby - Socket Programming](http://www.tutorialspoint.com/ruby/ruby_socket_programming.htm)**
>
> Ruby Socket Programming - Ruby provides two levels of access to network services. At a low level, you can access the basic socket support in the underlying operating system, which allows you to implement clients and servers for both...

[http://www.ruby-doc.org/stdlib/libdoc/socket/rdoc/](http://www.ruby-doc.org/stdlib/libdoc/socket/rdoc/)  
[http://www.example-code.com/ruby/rubysocket.asp](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](http://www.google.com/search?client=safari&rls=en&q=ruby+socket)

Best regards

Peter De Berdt

---

<div class="post-metadata">

**Author:** ![simo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/90db22/32.png) [@simo](https://www.ruby-forum.com/u/simo)\
**Post date:** [October 27, 2009, 10:06am UTC](https://www.ruby-forum.com/t/fsockopen-method-in-ror/197011/3 "2009-10-27T10:06:41Z")

</div>

Thanks.
