gforth
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gforth] New Forth web server


From: Bernd Paysan
Subject: Re: [gforth] New Forth web server
Date: Thu, 27 Oct 2016 14:17:53 +0200
User-agent: KMail/5.3.2 (Linux/4.8.3-1-default; KDE/5.26.0; x86_64; ; )

Am Donnerstag, 27. Oktober 2016, 11:44:11 CEST schrieb Robert Wilkinson:
> On Wed, Oct 26, 2016 at 08:04:30PM +0200, Rene Hartmann wrote:
> > Hello,
> > 
> > I've written a lightweight HTTP server in Forth.
> > 
> > It uses an event-based I/O model. This allows handling many simultaneous
> > connections without the need for tasks which are not available in all
> > Forth
> > implementations.
> > 
> > Processing HTTP requests is delegated to request handlers. A handler for
> > GET which sends files is included. Handlers for e.g. POST requests can be
> > added. This makes it possible to implement a REST API using Forth. An
> > example for a POST handler is included.
> > 
> > The source is available at:
> > https://sourceforge.net/p/colono/code/ci/default/tree/
> > 
> > This is an early version running under GForth and Linux only. Windows and
> > other Forth implementations will be supported by future versions.
> > 
> > --
> > René Hartmann
> 
> Hello
> 
> I downloaded this, and saw one executable file in the httpd
> directory.
> 
> I tried to run it, and saw ...
> 
> address@hidden ~/s/c/httpd> ./colono.fs
> redefined accept  ar: `u' modifier ignored since `D' is the default
> (see `U')
> 
> in file included from *OS command line*:-1
> colono.fs:29: error 3305
> 
> >>>httpserve<<<
> 
> Backtrace:
> $7F86D984EE40 throw
> $7F86D984F2A0 bind-addr
> $7F86D9866678 server-listen
> address@hidden ~/s/c/httpd> ar --version
> GNU ar (GNU Binutils for Debian) 2.27
> Copyright (C) 2016 Free Software Foundation, Inc.
> This program is free software; you may redistribute it under the
> terms of
> the GNU General Public License version 3 or (at your option) any
> later version.
> This program has absolutely no warranty.
> address@hidden ~/s/c/httpd> gforth --version
> gforth 0.7.3
> address@hidden ~/s/c/httpd>
> 
> Am I doing something wrong?
> 
> An enclosed README file for the project would be useful to others?

Binding to address 80 requires root permission.

-- 
Bernd Paysan
"If you want it done right, you have to do it yourself"
net2o ID: kQusJzA;address@hidden(dQ*
http://bernd-paysan.de/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]