Hi,
PHP has ‘fsockopen’-function to create a socket connection. With what
function I can create this connection in ROR?
Thanks im Advance
Hi,
PHP has ‘fsockopen’-function to create a socket connection. With what
function I can create this connection in ROR?
Thanks im Advance
Simoha S. 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.
Brian C., Thanks.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs