[fpc-pascal] embedded HTTP server in GUI application
Graeme Geldenhuys
graeme at geldenhuys.co.uk
Mon Sep 2 13:28:27 CEST 2013
Hi,
Can anybody make recommendations for embedding a HTTP Server into a GUI
application?
ps: I'm using FPC 2.6.2, and the end result application will run under
Windows (primarily) and Linux.
1) My initial thought was to use Synapse. The TTCPHTTPDaemon seems
pretty simple to use, is already a component, and easily embedded in a
GUI [fpGUI] application.
2) I also looked at nYume - a very small HTTP (console) Server that
seems easy enough to convert into a "http server component", which I can
then run in a separate thread - embedded in my GUI app.
3) I understand Free Pascal also includes a HTTP Server now. I think it
is the one I found in fcl-web demos directory. It is a
TCustomApplication descendant - so will need some work to get working in
fpGUI based apps, seeing that fpGUI apps are not based on
TCustomApplication.
Anybody used any of these in any GUI environment as an embedded HTTP
server? Any pros or cons on each? Any other HTTP server components I
should maybe try?
Background info:
I need to embed the HTTP server into a GUI (desktop) application for two
products. One will be the application server in a 3-tier application
(communication is done via HTTP). The other product is a teaching
program that will launch a web browser (pointing to the embedded server)
and serving CGI apps that does the actual teaching for the student.
Regards,
Graeme
More information about the fpc-pascal
mailing list