hi yuri,

since hours I try to get a working server with no luck.

after succesful creation of srv. the program end immediatly.

In my understanding, I supposed that I will never see the end message.



program tst;

uses rpi_hal,SynHttpSrv,HttpSrvDemo1;
var srv:TSrvDatamodule;begin

  srv:=TSrvDatamodule.create(nil); 
writeln('end ');
end.



-----Ursprüngliche Nachricht-----
Von: Yury Sidorov <j...@cp-lab.com>
Gesendet: Mon 12 Juni 2017 16:22
An: synalist-public@lists.sourceforge.net
Betreff: Re: [Synalist] HTTPS Server demo on debian and raspberry pi


See the HttpSrvDemo1.pas as an example of the web server.
Use the InitHttps method to enable https.

The sources are quite simple, so it is easy to understand how it works.

Yury Sidorov,
j...@cp-lab.com

On 6/12/2017 1:49 PM, Stefan Fischer wrote:
> Thanks Yuri,
> 
> now it compiles with FPC 3.0.0.
> 
> How can I create a simple http(s) webserver, which serves htm files in local 
> directory. Just need a hint to start with 
> the code.
> 
> Stefan
> 
> 
>     -----Ursprüngliche Nachricht-----
>     *Von:* Yury Sidorov <j...@cp-lab.com>
>     *Gesendet:* Mon 12 Juni 2017 11:07
>     *An:* synalist-public@lists.sourceforge.net
>     *Betreff:* Re: [Synalist] HTTPS Server demo on debian and raspberry pi
> 
>     The Delphi mode is needed.
>     I've updated the sources to enable the Delphi mode for FPC.
>     Please re-download the updated version.
>     It will compile without issues.
> 
>     Yury Sidorov.
> 
>     On 6/9/2017 1:38 PM, Stefan Fischer wrote:
>     > after adding {$mode objfpc}{$H+} to synsrv I got these errors:
>     > 
>     > 
>     > SynSrv.pas(435,63) Error: Wrong number of parameters specified for call 
> to "ServerLoop"
>     > SynSrv.pas(77,15) Error: Found declaration: ServerLoop(TObject);
>     > SynSrv.pas(672,75) Error: Wrong number of parameters specified for call 
> to "InternalExecute"
>     > SynSrv.pas(146,15) Error: Found declaration: InternalExecute(TObject);
>     > SynSrv.pas(686,15) Error: Incompatible types: got "Pointer" expected 
> "TExecLoop"
>     > SynSrv.pas(693,49) Error: Wrong number of parameters specified for call 
> to "DoThreadWaiting"
>     > SynSrv.pas(80,15) Error: Found declaration: DoThreadWaiting(TObject);
>     > SynSrv.pas(694,63) Error: Wrong number of parameters specified for call 
> to "Execute"
>     > 
>     > SynSrv.pas(635,21) Error: Found declaration: Execute(TObject);
>     > SynSrv.pas(700,43) Error: Wrong number of parameters specified for call 
> to "InternalExecute"
>     > SynSrv.pas(146,15) Error: Found declaration: InternalExecute(TObject);
>     > SynSrv.pas(759,15) Error: Incompatible types: got "Pointer" expected 
> "TExecLoop"
>     > SynSrv.pas(791,17) Error: Incompatible types: got "Pointer" expected 
> "TSynTcpSrvConnection"
>     > SynSrv.pas(816,10) Error: Incompatible types: got "Pointer" expected 
> "TSynTcpSrvConnection"
>     > 
>     > 
>     >     -----Ursprüngliche Nachricht-----
>     >     *Von:* Stefan Fischer <sfisc...@basis.biz>
>     >     *Gesendet:* Fre 9 Juni 2017 12:33
>     >     *An:* Ararat Synapse <synalist-public@lists.sourceforge.net>
>     >     *Betreff:* Re: [Synalist] HTTPS Server demo on debian and raspberry 
> pi
>     > 
>     >     Thanks Yury,
>     > 
>     >     tried to compile it with fpc 3.0.0 and got this errors:
>     > 
>     >     SynSrv.pas(28,24) Error: Identifier not found "class"
>     > 
>     > 
>     >     SynSrv.pas(29,35) Fatal: Syntax error, ";" expected but "OF" found
>     > 
>     > 
>     >         -----Ursprüngliche Nachricht-----
>     >         *Von:* Yury Sidorov <j...@cp-lab.com>
>     >         *Gesendet:* Don 8 Juni 2017 21:40
>     >         *An:* synalist-public@lists.sourceforge.net
>     >         *Betreff:* Re: [Synalist] HTTPS Server demo on debian and 
> raspberry pi
>     > 
>     >         Hi,
>     > 
>     >         In 2011 I got the http(s) server code SynHttpSrv by author Semi 
> from this mail list. I am very grateful to him for
>     >         sharing his code.
>     >         Since 2011 I've fixed bugs and improved the code and the http 
> server SynHttpSrv works very well. For me it works on
>     >         Windows and Android. There should be no issues for other 
> platforms.
>     > 
>     >         Here is the code:
>     >         https://drive.google.com/open?id=0BxhmPD-N0cvgWjlnUkppLXZMZkU
>     > 
>     >         Lukas Gebauer, you can consider adding the SynHttpSrv to 
> Synapse repository, since it is very useful. And thanks for
>     >         Synapse of course!
>     > 
>     >         Yury Sidorov.
>     > 
>     >         On 6/8/2017 8:59 PM, Stefan Fischer wrote:
>     >         > Hello,
>     >         > 
>     >         > I want to implement a https server on debian/raspberry.
>     >         > 
>     >         > The httpserver demo requires winsock.
>     >         > 
>     >         > Does anyone has code for linux platform to start with.
>     >         > 
>     >         > 
>     >         > Thanks,
>     >         > 
>     >         > Stefan
>     >         > 
>     >         > 
>     >         > 
>     >         > 
>     >         > 
> ------------------------------------------------------------------------------
>     >         > Check out the vibrant tech community on one of the world's 
> most
>     >         > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>     >         > 
>     >         > 
>     >         > 
>     >         > _______________________________________________
>     >         > synalist-public mailing list
>     >         > synalist-public@lists.sourceforge.net
>     >         > https://lists.sourceforge.net/lists/listinfo/synalist-public
>     >         > 
>     > 
>     >         
> ------------------------------------------------------------------------------
>     >         Check out the vibrant tech community on one of the world's most
>     >         engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>     >         _______________________________________________
>     >         synalist-public mailing list
>     >         synalist-public@lists.sourceforge.net
>     >         https://lists.sourceforge.net/lists/listinfo/synalist-public
>     > 
>     >     
> ------------------------------------------------------------------------------
>     > 
>     >     Check out the vibrant tech community on one of the world's most
>     > 
>     >     engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>     > 
>     >     _______________________________________________
>     > 
>     >     synalist-public mailing list
>     > 
>     >     synalist-public@lists.sourceforge.net
>     > 
>     >     https://lists.sourceforge.net/lists/listinfo/synalist-public
>     > 
>     > 
>     > 
>     > 
> ------------------------------------------------------------------------------
>     > Check out the vibrant tech community on one of the world's most
>     > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>     > 
>     > 
>     > 
>     > _______________________________________________
>     > synalist-public mailing list
>     > synalist-public@lists.sourceforge.net
>     > https://lists.sourceforge.net/lists/listinfo/synalist-public
>     > 
> 
>     
> ------------------------------------------------------------------------------
>     Check out the vibrant tech community on one of the world's most
>     engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>     _______________________________________________
>     synalist-public mailing list
>     synalist-public@lists.sourceforge.net
>     https://lists.sourceforge.net/lists/listinfo/synalist-public
> 
> 
> 
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> 
> 
> 
> _______________________________________________
> synalist-public mailing list
> synalist-public@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/synalist-public
> 

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to