Net/http

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

···

--
Posted via http://www.ruby-forum.com/.

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

[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.

···

On 4/20/06, String numecal validate! <blerloko@hotmail.com> 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

--
Posted via http://www.ruby-forum.com/\.

--
===Tanner Burson===
tanner.burson@gmail.com
http://tannerburson.com <---Might even work one day...