Re: [twsocket] Has anybody built a BCB2010 project with ICSv7(latest)?

2009-09-16 Thread Arno Garrels
Fastream Technologies wrote: Where could I get more info on the proper way to do that? Dunno for C++ Builder. These articles address Delphi, however they are useful for C++ Builder users as well: http://dn.codegear.com/print/38437 http://dn.codegear.com/print/38498

Re: [twsocket] Has anybody built a BCB2010 project with ICSv7(latest)?

2009-09-16 Thread Fastream Technologies
Thanks for the summary and links! :-) On Wed, Sep 16, 2009 at 10:08 AM, Arno Garrels arno.garr...@gmx.de wrote: Fastream Technologies wrote: Where could I get more info on the proper way to do that? Dunno for C++ Builder. These articles address Delphi, however they are useful for C++

[twsocket] Timeout in sync operations

2009-09-16 Thread Anton Sviridov
Hello! I'm writing simple console downloader and decided to use sync operations in order to simplify structure. But I've found that sync requests (HttpCli) do not use any timeout, so they may last forever in case of error. My question is: how can I add timeouts without messageloops and threads

Re: [twsocket] Timeout in sync operations

2009-09-16 Thread Anton Sviridov
how can I add timeouts without messageloops and threads and so on? I see that there is still ControlSocket.MesagePump in SyncRequest, so I suppose creating timer will work, won't it? -- Anton -- To unsubscribe or change your settings for TWSocket mailing list please goto

Re: [twsocket] Timeout in sync operations

2009-09-16 Thread francois . piette
how can I add timeouts without messageloops and threads and so on? You need a messageloop to make ICS component work anyway. Every GUI application has a messageloop. If you build a console mode application, you have to create one yourself. See various console mode ICS démos. Simple... --

Re: [twsocket] Timeout in sync operations

2009-09-16 Thread francois . piette
And second question, more global: Isn't it worth to add good and native timeout functionality to TWSocket so that thousands of developers hadn't invent a bicycle again and again? I know about TIcsTimer and so on, but it is not 'out of the box'. This is underway. but designing a general

Re: [twsocket] Timeout in sync operations

2009-09-16 Thread Anton Sviridov
If you build a console mode application, you have to create one yourself. See various console mode ICS d?mos. Simple... Yes, I created TIcsTimer with HttpCli.CtrlSocket as Owner and implemented Start/StopTimer methods. Seems working, although I don't see yet how can I control the main function

Re: [twsocket] Timeout in sync operations

2009-09-16 Thread Arno Garrels
Anton Sviridov wrote: If you build a console mode application, you have to create one yourself. See various console mode ICS d?mos. Simple... Yes, I created TIcsTimer with HttpCli.CtrlSocket as Owner and implemented Start/StopTimer methods. Seems working, although I don't see yet how can I

Re: [twsocket] Timeout in sync operations

2009-09-16 Thread Fastream Technologies
I think Arno and Francois is right about not making a TTimer per Thttpcli as default. It would overwhelm our reverse proxy with 10k connections each with two sockets. However for simple needs, Anton is right about asking for a solution which I think sould only be switched on by a define. Just my

Re: [twsocket] Timeout in sync operations

2009-09-16 Thread Arno Garrels
Anton Sviridov wrote: Hello! I'm writing simple console downloader and decided to use sync operations in order to simplify structure. But I've found that sync requests (HttpCli) do not use any timeout, so they may last forever in case of error. That's IMHO a bug. -- Arno Garrels -- To

Re: [twsocket] Timeout in sync operations

2009-09-16 Thread Angus Robertson - Magenta Systems Ltd
I'm writing simple console downloader and decided to use sync operations in order to simplify structure. But I've found that sync requests (HttpCli) do not use any timeout, so they may last forever in case of error. That's IMHO a bug. Indeed, poor implementation in THttpCli with no

[twsocket] Location of TTrafficLight component and example source code

2009-09-16 Thread Wayne Belshaw
Hello, I'm trying to locate the source code and TTrafficLight component referenced in an article written by Francois Piette and found originally in the following inactive linkage: http://edn.embarcadero.com/print/20465. It was titled Writing Client/Server applications in ICS It would be of