|Subject:||Status of Indy 10.x with Free Pascal|
|Posted by:||Graeme (graem…@gmail.com)|
|Date:||Mon, 28 Nov 2011|
What is the status of Indy 10.5 (I'm using 10.5.8 here) with Free Pascal? More specifically under Linux. I've port tiOPF's multi-tier application server, which uses Indy HTTP Server component. It works perfectly under Windows and project compiled with FPC 2.5.1 (the to be soon released 2.6.0 code).
But when I compile that same project under Linux with same FPC version, I have some issues.
1) indy doesn't setup default Bindings like it does under Windows. So i have to manually do the following in my code:
FIdHTTPServer := TIdHTTPServer.Create(Nil);
FIdHTTPServer.OnCommandGet := DoIDHTTPServerCommandGet;
FIdHTTPServer.KeepAlive := False;
FIdHTTPServer.Bindings.Add.IPVersion := id_IPv4;
2) The DoIDHTTPServerCommandGet() event handler of OnCommandGet never gets called under Linux. So my HTTP Server simply does nothing. :-(
My setup is as follows:
- Ubuntu Linux 10.04.2 (64-bit)
- Indy 10.5.8
- Free Pascal 2.5.1 (to be released 2.6.0 soon)
I'll setup a 32-bit Linux environment and test under that soon. Just to see if it is a 32-bit vs 64-bit issue in Indy, or a Linux vs Windows issues.
- Graeme -