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.htmlhttp://ruby-doc.org/core/classes/TCPSocket.htmlThere are also lower-level socket classes which can be used in special
cases.
--
Posted via
http://www.ruby-forum.com/.