Il 05/03/2009 0.25, Przemyslaw Czerpak ha scritto:
I can try to look at uhttpd but it will have to be updated to work
in Linux. At least in some special test mode. Can you update it?
I tried to compile it with INET support and the following functions
are missed:
   WIN_SYSREFRESH(), WIN_TIMEZONEBIAS(), WIN_SETENV(), FILEDATE()
The last one is from hbct and can be easy replaced by:
   HB_FGETDATETIME( <cFile>, [ @<dDate> ] [, @<cTime> ] ) -> <lOK>
Please use it if possible instead FILEDATE(). It will reduce dependencies
list.
I'll add hb_setenv() function which can be used to replace WIN_SETENV().
I can also add hb_utcoffset() which will return difference to UTC+0000
in minutes which you can used instead of WIN_TIMEZONEBIAS().
How to replace WIN_SYSREFRESH() is your decision.
But maybe it will be good to add some compile time switch like USE_HB_INET
to disable all above WIN_*() functions. In such version we can test this
code using current core Harbour libs only without any additional C stuff.
If you can update it so it can be executed as simple console application
in Linux then I'll try to locate what's the reason of problems.

I'm doing, about WIN_SYSREFRESH() I have added because I have noticed that Windows use more CPU time with threads and not updates well other windows. Maybe this will be useful to add in internal core to release resources to OS.
I will do some tests again.
In meanwhile I will add a compiler switch to exclude it from non windows builds. About WIN_TIMEZONEBIAS() there is already a function in hbtip, but IMO it's wrong. But I will check it again.
I will try to build in Linux to see if I can make uhttpd portable.

Best regards

Francesco
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to