Hello
I can create a server in ruby…that server need listening in port 80
wait for requisition, but i dont have idea, How I do that?
Thank’s
Hello
I can create a server in ruby…that server need listening in port 80
wait for requisition, but i dont have idea, How I do that?
Thank’s
String numecal validate! wrote:
Hello
I can create a server in ruby…that server need listening in port 80
wait for requisition, but i dont have idea, How I do that?Thank’s
Net/HTTP is for connecting to a server.
Try using the GServer
(http://ruby-doc.org/stdlib/libdoc/gserver/rdoc/classes/GServer.html)
standard library to create a generic server, if that’s what you are
trying to do?
-Justin
On 4/20/06, String numecal validate! [email protected] wrote:
[off topic rant]]No offense to this poster whatsoever, but I knew from
the
title/“username” that this would come from the ruby-forum bridge. And
as
mentioned in a previous topic today, I think this sort of thing is
exactly
why rubyforum needs to either put a large disclaimer as to it’s actual
use,
or be split from the mailing list / newsgroup.
Now to answer the original poster. Look at the TCPServer class, or
possibly
into using WEBrick if you’re just needing a simple HTTP server. If you
search the archives of this mailing list, or the comp.lang.ruby
newsgroup
you should be able to find plenty of information on writing server
applications.
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