Hi!
Is there no other API for Ruby than the one on
http://www.rubycentral.com/book/builtins.html ?
This one does not hold all information on Classes from the standard
lib… :-/ For example is “socket” missing.
Cheers, KS.
Hi!
Is there no other API for Ruby than the one on
http://www.rubycentral.com/book/builtins.html ?
This one does not hold all information on Classes from the standard
lib… :-/ For example is “socket” missing.
Cheers, KS.
‘builtins’ is just one chapter of the pickaxe book, there
is other chapters, for instance have a look at:
http://www.rubycentral.com/book/lib_network.html
BTW: I see you are from denmark…
On Sun, 21 Mar 2004 21:20:15 +0100, Kristian Sørensen wrote:
Is there no other API for Ruby than the one on
http://www.rubycentral.com/book/builtins.html ?This one does not hold all information on Classes from the standard
lib… :-/ For example is “socket” missing.
–
Simon Strandgaard
Click ‘Next >’ 3 times:
http://www.rubycentral.com/book/lib_network.html
On Sun, 21 Mar 2004 21:20:15 +0100, Kristian Sørensen wrote:
Hi!
Is there no other API for Ruby than the one on
http://www.rubycentral.com/book/builtins.html ?This one does not hold all information on Classes from the standard lib…
:-/ For example is “socket” missing.
“Tim Hunter” cyclists@nc.rr.com schrieb im Newsbeitrag
news:pan.2004.03.21.20.20.56.436790@nc.rr.com…
Hi!
Is there no other API for Ruby than the one on
http://www.rubycentral.com/book/builtins.html ?This one does not hold all information on Classes from the standard
lib…
:-/ For example is “socket” missing.Click ‘Next >’ 3 times:
And then there is ruby-doc:
http://www.ruby-doc.org/docs/rdoc/1.9/
http://www.ruby-doc.org/stdlib/
robert
On Sun, 21 Mar 2004 21:20:15 +0100, Kristian Sørensen wrote:
Simon Strandgaard wrote:
Is there no other API for Ruby than the one on
http://www.rubycentral.com/book/builtins.html ?This one does not hold all information on Classes from the standard
lib… :-/ For example is “socket” missing.‘builtins’ is just one chapter of the pickaxe book, there
is other chapters, for instance have a look at:
http://www.rubycentral.com/book/lib_network.htmlBTW: I see you are from denmark…
I lige måde
Thanks for your answer!
I am playing (just for fun) with a small webserver… For logging
purposes, is there any way to get the IP address from the “remote”
computer from a TCPSocket?
Cheers && hygge
KS.
On Sun, 21 Mar 2004 21:20:15 +0100, Kristian Sørensen wrote:
Kristian Sørensen wrote:
Simon Strandgaard wrote:
Is there no other API for Ruby than the one on
http://www.rubycentral.com/book/builtins.html ?This one does not hold all information on Classes from the standard
lib… :-/ For example is “socket” missing.‘builtins’ is just one chapter of the pickaxe book, there
is other chapters, for instance have a look at:
http://www.rubycentral.com/book/lib_network.htmlBTW: I see you are from denmark…
I lige måde
Thanks for your answer!
I am playing (just for fun) with a small webserver… For logging
purposes, is there any way to get the IP address from the “remote”
computer from a TCPSocket?
Why didn’t I just try … socket.addr did the trick
On Sun, 21 Mar 2004 21:20:15 +0100, Kristian Sørensen wrote:
Have you looked at WEBrick? It is part of Ruby 1.8. See
http://www.webrick.org for details.
Kristian S?rensen (ks@cs.auc.dk) wrote:
Thanks for your answer!
I am playing (just for fun) with a small webserver… For logging
purposes, is there any way to get the IP address from the “remote”
computer from a TCPSocket?
–
Eric Hodel - drbrain@segment7.net - http://segment7.net
All messages signed with fingerprint:
FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04
I am playing (just for fun) with a small webserver… For logging
purposes, is there any way to get the IP address from the “remote”
computer from a TCPSocket?Why didn’t I just try … socket.addr did the trick
… it actually didn’t do the trick :-/ The socket.addr returns the
local address of the ip-address. Do any of you know how to get the
remote/connecting ip? (the actual server source is attached - 65 lines)
Cheers!
KS.
webserver.rb (1.54 KB)
Wrote Kristian Sørensen ks@cs.auc.dk, on Tue, Mar 23, 2004 at 05:19:29AM +0900:
Why didn’t I just try … socket.addr did the trick
… it actually didn’t do the trick :-/ The socket.addr returns the
local address of the ip-address. Do any of you know how to get the
remote/connecting ip? (the actual server source is attached - 65 lines)
IPSocket#peeraddr(), perhaps?
See Programming Ruby: The Pragmatic Programmer's Guide
Cheers,
Sam
–
Sam Roberts sroberts@certicom.com