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
on 2006-04-20 22:59
on 2006-04-20 23:09
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/cla...) standard library to create a generic server, if that's what you are trying to do? -Justin
on 2006-04-20 23:18
On 4/20/06, String numecal validate! <email@example.com> 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.