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/.
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/.
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/\.
Brian Candler, Thanks.
--
Posted via http://www.ruby-forum.com/.