Re: [Lazarus] HTTP client/server components committed.

2011-05-23 Thread Marco van de Voort
On Tue, May 17, 2011 at 10:45:45AM -0300, Marcos Douglas wrote: But it's also reinventing the wheel, no? You say it like you think that is a bad thing :-) -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] HTTP client/server components committed.

2011-05-23 Thread Marcos Douglas
On Mon, May 23, 2011 at 1:19 PM, Marco van de Voort mar...@stack.nl wrote: On Tue, May 17, 2011 at 10:45:45AM -0300, Marcos Douglas wrote: But it's also reinventing the wheel, no? You say it like you think that is a bad thing :-) Not a bad thing, but in open sources projects, that you can

Re: [Lazarus] HTTP client/server components committed.

2011-05-23 Thread Marco van de Voort
On Mon, May 23, 2011 at 01:26:11PM -0300, Marcos Douglas wrote: You say it like you think that is a bad thing :-) Not a bad thing, but in open sources projects, that you can share already done codes, I think that could be a waste of time... not all time, not in this particulary project,

Re: [Lazarus] HTTP client/server components committed.

2011-05-17 Thread Michael Schnell
On 05/16/2011 05:27 PM, michael.vancann...@wisa.be wrote: Will this allow to create a project with a browser based remote GUI ? Yes. Great. looking forward to test it. Will this help to create a Lazarus Application running as a Daemon on an Android device and have the user access it via

Re: [Lazarus] HTTP client/server components committed.

2011-05-17 Thread michael . vancanneyt
On Tue, 17 May 2011, Michael Schnell wrote: On 05/16/2011 05:27 PM, michael.vancann...@wisa.be wrote: Will this allow to create a project with a browser based remote GUI ? Yes. Great. looking forward to test it. Will this help to create a Lazarus Application running as a Daemon on an

Re: [Lazarus] HTTP client/server components committed.

2011-05-17 Thread Graeme Geldenhuys
On 17/05/2011 10:34, michael.vancann...@wisa.be wrote: buggy, it didn't react unless you moved the mouse in the app, both in Windows and Linux if I recall corretly. I remember it being Windows only - but that's not important. While TTimer has been fixed almost immediatly by Graeme after I

Re: [Lazarus] HTTP client/server components committed.

2011-05-17 Thread Graeme Geldenhuys
On 15/05/2011 23:05, Lee Jenkins wrote: Great stuff Michael. I can see many uses for the HTTPClient alone without having to use a third libraries. Definitely! As soon as FPC 2.6.0 is out, I'll use it in tiOPF's multi-tier support as well. Nice work Michael. Regards, - Graeme - -- fpGUI

Re: [Lazarus] HTTP client/server components committed.

2011-05-17 Thread Michael Schnell
On 05/17/2011 10:34 AM, michael.vancann...@wisa.be wrote: Any implementation will always use polling. You may hide it under some kind of abstraction, but it's always polling. On unix with select() or epoll(), on Windows with PeekMessage/GetMessage and friends. Your Delphi windows timer uses

Re: [Lazarus] HTTP client/server components committed.

2011-05-17 Thread Michael Schnell
On 05/17/2011 10:42 AM, Graeme Geldenhuys wrote: Correct. While that design may not be ideal (please mention new designs if they exist), it is perfectly acceptable in fpGUI because after all, fpGUI is a 'gui toolkit' for 'gui applications'. ;-) I really would like to test the newest version :-)

Re: [Lazarus] HTTP client/server components committed.

2011-05-17 Thread michael . vancanneyt
On Tue, 17 May 2011, Michael Schnell wrote: On 05/17/2011 10:34 AM, michael.vancann...@wisa.be wrote: Any implementation will always use polling. You may hide it under some kind of abstraction, but it's always polling. On unix with select() or epoll(), on Windows with

Re: [Lazarus] HTTP client/server components committed.

2011-05-17 Thread Michael Schnell
On 05/17/2011 11:09 AM, Michael Schnell wrote: I really would like to test the newest version :-) . I just fetched the newest update and not I can't compile it any more,. I get ../../../../fpGUI/src/corelib/x11/fpg_interface.pas(26,3) Fatal: Can't find unit fpg_x11 used by fpg_interface

Re: [Lazarus] HTTP client/server components committed.

2011-05-17 Thread Graeme Geldenhuys
On 17/05/2011 11:30, Michael Schnell wrote: I just fetched the newest update and not I can't compile it any more,. I haven't tried to compile or use LCL-fpGUI widgetset in ages... I'll see if I can take a look in the next few days. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform

Re: [Lazarus] HTTP client/server components committed.

2011-05-17 Thread Michael Schnell
On 05/17/2011 11:32 AM, michael.vancann...@wisa.be wrote: That's just name picking. Polling = asking a question. OK, to be clear we should use busy polling (according to a busy loop or spinlock). But even not busy polling (that avoids performance killing for other threads and processes) is

Re: [Lazarus] HTTP client/server components committed.

2011-05-17 Thread Marcos Douglas
On Tue, May 17, 2011 at 5:46 AM, Graeme Geldenhuys graemeg.li...@gmail.com wrote: On 15/05/2011 23:05, Lee Jenkins wrote: Great stuff Michael.  I can see many uses for the HTTPClient alone without having to use a third libraries. Definitely! As soon as FPC 2.6.0 is out, I'll use it in tiOPF's

Re: [Lazarus] HTTP client/server components committed.

2011-05-17 Thread Graeme Geldenhuys
On 17/05/2011 14:53, Marcos Douglas wrote: Yes, nice work... but what is the problem about third libraries? Nothing per se. But having some vital functionality included in FPC just makes it so much easier to get a new developer system up and running (less to install and configure). Not to

Re: [Lazarus] HTTP client/server components committed.

2011-05-17 Thread Marcos Douglas
On Tue, May 17, 2011 at 10:00 AM, Graeme Geldenhuys graemeg.li...@gmail.com wrote: On 17/05/2011 14:53, Marcos Douglas wrote: Yes, nice work... but what is the problem about third libraries? Nothing per se. But having some vital functionality included in FPC just makes it so much easier to

Re: [Lazarus] HTTP client/server components committed.

2011-05-17 Thread Graeme Geldenhuys
On 17/05/2011 15:45, Marcos Douglas wrote: But it's also reinventing the wheel, no? That could be considered another down side, especially if the 3rd party library has a lot of functionality. Other benefits: - A lite version could be implemented in FPC - reducing time to implement, and

Re: [Lazarus] HTTP client/server components committed.

2011-05-17 Thread Lee Jenkins
On 5/17/2011 9:00 AM, Graeme Geldenhuys wrote: On 17/05/2011 14:53, Marcos Douglas wrote: Yes, nice work... but what is the problem about third libraries? Nothing per se. But having some vital functionality included in FPC just makes it so much easier to get a new developer system up and

Re: [Lazarus] HTTP client/server components committed.

2011-05-17 Thread michael . vancanneyt
On Tue, 17 May 2011, Marcos Douglas wrote: On Tue, May 17, 2011 at 10:00 AM, Graeme Geldenhuys graemeg.li...@gmail.com wrote: On 17/05/2011 14:53, Marcos Douglas wrote: Yes, nice work... but what is the problem about third libraries? Nothing per se. But having some vital functionality

Re: [Lazarus] HTTP client/server components committed.

2011-05-17 Thread michael . vancanneyt
On Tue, 17 May 2011, Graeme Geldenhuys wrote: On 17/05/2011 15:45, Marcos Douglas wrote: But it's also reinventing the wheel, no? That could be considered another down side, especially if the 3rd party library has a lot of functionality. Other benefits: - A lite version could be

Re: [Lazarus] HTTP client/server components committed.

2011-05-17 Thread michael . vancanneyt
On Tue, 17 May 2011, Lee Jenkins wrote: On 5/17/2011 9:00 AM, Graeme Geldenhuys wrote: On 17/05/2011 14:53, Marcos Douglas wrote: Yes, nice work... but what is the problem about third libraries? Nothing per se. But having some vital functionality included in FPC just makes it so much

Re: [Lazarus] HTTP client/server components committed.

2011-05-17 Thread Andrew Brunner
One thing I'd like to raise is SSL/TSL. For apps development via FPC as an industrial viable option, FPC needs SSL/TLS support. Even if you use openSSL- it still needs to be included. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] HTTP client/server components committed.

2011-05-17 Thread Marcos Douglas
On Tue, May 17, 2011 at 11:13 AM, michael.vancann...@wisa.be wrote: On Tue, 17 May 2011, Marcos Douglas wrote: Sorry Michael, I like yours projects so much. I just want understand the real vantages in this project to migrate, eg, the Synapse can do same, no? It can. But then we must

Re: [Lazarus] HTTP client/server components committed.

2011-05-17 Thread Marcos Douglas
On Tue, May 17, 2011 at 11:05 AM, Lee Jenkins l...@datatrakpos.com wrote: On 5/17/2011 9:00 AM, Graeme Geldenhuys wrote: On 17/05/2011 14:53, Marcos Douglas wrote: Yes, nice work... but what is the problem about third libraries? Nothing per se. But having some vital functionality included

Re: [Lazarus] HTTP client/server components committed.

2011-05-17 Thread Lee Jenkins
On 5/17/2011 10:08 AM, Andrew Brunner wrote: One thing I'd like to raise is SSL/TSL. For apps development via FPC as an industrial viable option, FPC needs SSL/TLS support. Even if you use openSSL- it still needs to be included. I would also very much like to see that as well. It's become

Re: [Lazarus] HTTP client/server components committed.

2011-05-16 Thread michael . vancanneyt
On Sun, 15 May 2011, Lee Jenkins wrote: On 5/15/2011 12:13 PM, Michael Van Canneyt wrote: Hi, Server: * Create a TWebHandler and THTTPWebApplication for use as a Lazarus project. Comments and suggestions welcome. Please report bugs in the bugtracker. Michael. Great stuff Michael. I

Re: [Lazarus] HTTP client/server components committed.

2011-05-16 Thread Lee Jenkins
On 5/16/2011 3:04 AM, michael.vancann...@wisa.be wrote: On Sun, 15 May 2011, Lee Jenkins wrote: On 5/15/2011 12:13 PM, Michael Van Canneyt wrote: Hi, Server: * Create a TWebHandler and THTTPWebApplication for use as a Lazarus project. Comments and suggestions welcome. Please report bugs

Re: [Lazarus] HTTP client/server components committed.

2011-05-16 Thread Michael Schnell
On 05/15/2011 06:13 PM, Michael Van Canneyt wrote: Server: * Create a TWebHandler and THTTPWebApplication for use as a Lazarus project. Will this allow to create a project with a browser based remote GUI ? Will this help to create a Lazarus Application running as a Daemon on an Android

Re: [Lazarus] HTTP client/server components committed.

2011-05-16 Thread michael . vancanneyt
On Mon, 16 May 2011, Michael Schnell wrote: On 05/15/2011 06:13 PM, Michael Van Canneyt wrote: Server: * Create a TWebHandler and THTTPWebApplication for use as a Lazarus project. Will this allow to create a project with a browser based remote GUI ? Yes. Will this help to create a

[Lazarus] HTTP client/server components committed.

2011-05-15 Thread Michael Van Canneyt
Hi, In the light of recent fppkg and fcl-web discussions: I've committed simple HTTP server (threaded or not) and HTTP Client components to FCL-Web. They work using the fcl-net ssockets unit. (for which a fix has been committed as well). Both use blocking sockets. The server component is

Re: [Lazarus] HTTP client/server components committed.

2011-05-15 Thread Lee Jenkins
On 5/15/2011 12:13 PM, Michael Van Canneyt wrote: Hi, In the light of recent fppkg and fcl-web discussions: I've committed simple HTTP server (threaded or not) and HTTP Client components to FCL-Web. They work using the fcl-net ssockets unit. (for which a fix has been committed as well). Both