Discussion:
[fpc-pascal] Embedded web server
Leonardo M. Ramé
2007-03-14 19:10:02 UTC
Permalink
Hi, I need to create a web app and don't whant to use CGI or Apache modules, in fact I whant to
create my own web server that serves only an embedded app.

Anyone knows anithing like this?, if I'm not wrong Jason P. Sage was looking for something similar.

Leonardo M. Ramé
http://leonardorame.blogspot.com



____________________________________________________________________________________
Expecting? Get great news right away with email Auto-Check.
Try the Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html
Michael Van Canneyt
2007-03-14 19:43:03 UTC
Permalink
Post by Leonardo M. Ramé
Hi, I need to create a web app and don't whant to use CGI or Apache modules, in fact I whant to
create my own web server that serves only an embedded app.
Anyone knows anithing like this?, if I'm not wrong Jason P. Sage was looking for something similar.
As far as I know, Lnet contains an embedded webserver.
The fpc-xml also has one, in combination with fpasync.

Michael.
Leonardo M. Ramé
2007-03-14 19:44:24 UTC
Permalink
Thanks Michael, can you point me to the urls of that products?
Post by Leonardo M. Ramé
Post by Leonardo M. Ramé
Hi, I need to create a web app and don't whant to use CGI or Apache modules, in fact I whant
to
Post by Leonardo M. Ramé
create my own web server that serves only an embedded app.
Anyone knows anithing like this?, if I'm not wrong Jason P. Sage was looking for something
similar.
As far as I know, Lnet contains an embedded webserver.
The fpc-xml also has one, in combination with fpasync.
Michael.
_______________________________________________
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
____________________________________________________________________________________
Now that's room service! Choose from over 150,000 hotels
in 45,000 destinations on Yahoo! Travel to find your fit.
http://farechase.yahoo.com/promo-generic-14795097
Felipe Monteiro de Carvalho
2007-03-14 19:49:40 UTC
Permalink
Post by Leonardo M. Ramé
Thanks Michael, can you point me to the urls of that products?
http://wiki.lazarus.freepascal.org/lNet

fpc-xml should be part of a normal fpc installation afaik
Michael Van Canneyt
2007-03-14 20:01:25 UTC
Permalink
Post by Leonardo M. Ramé
Thanks Michael, can you point me to the urls of that products?
The lazarus wiki contains a lcl page; the rest is part of FPC by default.

You could also try Indy for FPC, I don't know if Synapse has a server component,
it definitely has client components.

Michael.
Jason P Sage
2007-03-14 22:34:51 UTC
Permalink
Leonardo M. Ramé Wrote
Post by Leonardo M. Ramé
Hi, I need to create a web app and don't whant to use CGI or Apache
modules, in fact I whant to
create my own web server that serves only an embedded app.
Anyone knows anithing like this?, if I'm not wrong Jason P. Sage was
looking for something similar.
Leonardo M. Ramé
I learned a lot while hunting for a web server. I have not needed nor
investigated embedded web server's but perhaps you will find success
with these items like I did:

FPC Multi-Threading Support
FPC Socket Lib
TProcess (Or the Process Unit) for launching external processes. (Not
sure this applies to your application)

I was quite impressed with nYume Web Server by the "Replicator" in
Russia, which is less then 1000 lines of code I THINK.

I learned a lot and now have a web server totally written in FPC that is
1.7 times faster than apache on static web pages (bench marked using ab,
same html pages, same machine etc)

I was able to use FPC process unit to create direct CGI support (
executable cgi apps), Perl (via cgi) , and PHP (via CGI), and my
executable can run as a webserver or a multi-threaed CGI client system
- with a simple change to the config file. So now I have two major ways
to deploy my web applications written in FPC: CGI or Standalone - Which
is WebServer + Built in Application Mode.

I managed virtual host support, and apache compatible logging in
apache's "combined" mode.

Here is the link to the nYume Web Server's downloads.

http://zero.kanet.ru/files/?page=/nYume_Server

I learned a lot from this guy's code, help on this forum, and just
banging away all on my keyboard all hours night and day ... so if you
have any questions - feel free to ask - I MAY be able to save you a
minute.


Best Regards,
Jason P Sage

Loading...