I'd like to know how to establish a connection between me and another
computer via a ruby script.
Also If you happen to know a good place where I can learn networking on
ruby that'd be great.
···
--
Posted via http://www.ruby-forum.com/.
I'd like to know how to establish a connection between me and another
computer via a ruby script.
Also If you happen to know a good place where I can learn networking on
ruby that'd be great.
--
Posted via http://www.ruby-forum.com/.
cynic limbu wrote in post #1137205:
Also If you happen to know a good place where I can learn networking on
ruby that'd be great.
book (picaxe) :
Programming Ruby: The Pragmatic Programmer's Guide
Programming Ruby: The Pragmatic Programmer's Guide
Programming Ruby: The Pragmatic Programmer's Guide
snippets :
Network « Ruby
(this is not java only...)
I'd like to know how to establish a connection between me and another
computer via a ruby script.
see tcp_server and tcp_client and gserver
udp_server and udp_client
Ruby remoting (ie. drb)
in java2s snippets
goog luck... ![]()
--
Posted via http://www.ruby-forum.com/\.
That's rather vague... What kind of connection?
Regards,
Marcus
Am 19.02.2014 14:03, schrieb cynic limbu:
I'd like to know how to establish a connection between me and another
computer via a ruby script.
--
GitHub: stomar (Marcus Stollsteimer) · GitHub
PGP: 0x6B3A101A
GServer (in Ruby's stdlib) is probably the easiest place to start: http://rdoc.info/stdlib/gserver/GServer
Here's an example of using it for a chat server: Simple Ruby chat with GServer · GitHub
-Justin
On 02/19/2014 05:03 AM, cynic limbu wrote:
I'd like to know how to establish a connection between me and another
computer via a ruby script.Also If you happen to know a good place where I can learn networking on
ruby that'd be great.
unknown wrote in post #1137222:
I'd like to know how to establish a connection between me and another
computer via a ruby script.That's rather vague... What kind of connection?
Regards,
Marcus
unknown wrote in post #1137222:
I'd like to know how to establish a connection between me and another
computer via a ruby script.That's rather vague... What kind of connection?
Regards,
Marcus
Apologies, I'm not good with TCP/IP thing so I was wondering a type of
connection like chatting (3-4 people chat), Or sending files.
Sending data
My computer --> Server --> My another computer
Receiving data
My another computer --> Server --> My computer
I'm thinking that it would be better If it was a direct connection
rather than the server standing in front of computers.
It is possible? Without a server? To send and receive files?
Last question would be
Can I turn my computer itself into a server? Or does it have to be a
website?
Don't worry about my computer not being able to handle the requests,
Just two computers sending/receiving data.
Am 19.02.2014 14:03, schrieb cynic limbu:
Am 19.02.2014 14:03, schrieb cynic limbu:
--
Posted via http://www.ruby-forum.com/\.
If you're not thinking about a webapp and HTTP requests or using
other existing protocols (like ftp, ...) you probably want TCPServer
and TCPSocket.
Learning about threads might be useful, too, when you want to
write a chat server and client.
See the links Regis d'Aubarede provided, and you should easily
find more examples online, even specific tutorials on building
a chat server.
Regards,
Marcus
Am 20.02.2014 10:44, schrieb cynic limbu:
Apologies, I'm not good with TCP/IP thing so I was wondering a type of
connection like chatting (3-4 people chat), Or sending files.Sending data
My computer --> Server --> My another computerReceiving data
My another computer --> Server --> My computer
--
GitHub: https://github.com/stomar/
PGP: 0x6B3A101A