fsockopen in ROR

View: New views
3 Messages — Rating Filter:   Alert me  

fsockopen in ROR

by simoha :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

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

Thanks im Advance
--
Posted via http://www.ruby-forum.com/.


Re: fsockopen in ROR

by Brian Candler :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

FYI: Rails is a web framework. Ruby is a programming language.

If you want to open a TCP connection in Ruby, start with the TCPSocket
class.

http://www.ruby-doc.org/docs/ProgrammingRuby/html/lib_network.html
http://ruby-doc.org/core/classes/TCPSocket.html

There are also lower-level socket classes which can be used in special
cases.
--
Posted via http://www.ruby-forum.com/.


Re: fsockopen in ROR

by simoha :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Brian Candler, Thanks.
--
Posted via http://www.ruby-forum.com/.