Re: [twsocket] Use of twsocket in thttpserver application

2009-12-23 Thread Francois PIETTE
Hi Chris, Thanks for all the help with my Twsocket problem. You will be pleased to know that I have deployed the solution and everything works perfectly. Thank you for your positive feedback. I'm always happy to receive messages saying everything is OK :-) Have a great Christmas and a Happ

Re: [twsocket] Use of twsocket in thttpserver application

2009-12-23 Thread Chris Schofield
-boun...@elists.org] On Behalf Of Francois PIETTE Sent: 08 December 2009 17:03 To: ICS support mailing Subject: Re: [twsocket] Use of twsocket in thttpserver application Looks like you started to grasp async programming. Very good ! Don't forget you have to free the TWSocket at some time. I thin

Re: [twsocket] Use of twsocket in thttpserver application

2009-12-08 Thread Anton Sviridov
Hello Chris, I've wrote simple descendant of TWSocket which implements timeout stuff internally, I could send you the unit if you are interested -- Anton -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visi

Re: [twsocket] Use of twsocket in thttpserver application

2009-12-08 Thread Francois PIETTE
ginal Message - From: "Chris Schofield" To: "'ICS support mailing'" Sent: Tuesday, December 08, 2009 1:35 PM Subject: Re: [twsocket] Use of twsocket in thttpserver application Hi Angus (and all who have helped) I have created an array of (50) Twsockets. I the

Re: [twsocket] Use of twsocket in thttpserver application

2009-12-08 Thread Chris Schofield
ve it a good testing now. Many thanks Chris -Original Message- From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On Behalf Of Angus Robertson - Magenta Systems Ltd Sent: 08 December 2009 09:31 To: twsocket@elists.org Subject: Re: [twsocket] Use of twsocket in thttps

Re: [twsocket] Use of twsocket in thttpserver application

2009-12-08 Thread wilfried Mestdagh
009 9:45 Aan: 'ICS support mailing' Onderwerp: Re: [twsocket] Use of twsocket in thttpserver application Hi Many thanks for all the replies. This is a really great mailing list I am using application.processmessages because I need to connect to several different sockets as fo

Re: [twsocket] Use of twsocket in thttpserver application

2009-12-08 Thread Angus Robertson - Magenta Systems Ltd
> I am using application.processmessages because I need to connect to > several different sockets as follows Just create a dynamic array with one TWSocket for each connection, then start them all together. Application.ProcessMessages can be used in ICS client applications using the sync methods,

Re: [twsocket] Use of twsocket in thttpserver application

2009-12-08 Thread Chris Schofield
t-boun...@elists.org [mailto:twsocket-boun...@elists.org] On Behalf Of Angus Robertson - Magenta Systems Ltd Sent: 07 December 2009 15:46 To: twsocket@elists.org Subject: Re: [twsocket] Use of twsocket in thttpserver application > Each time my webserver needs to "nudge" one of the other

Re: [twsocket] Use of twsocket in thttpserver application

2009-12-07 Thread Paul
Each time my webserver needs to "nudge" one of the other applications then I guess I should start a thread to do this. Not always, but when it has lenghty operations to perform. Keep in mind that creating a thread takes its time too. If you have to create a thread frequently, it's better to cre

Re: [twsocket] Use of twsocket in thttpserver application

2009-12-07 Thread Francois PIETTE
After I call connect I call application processmessages until I get connected and then I close. Do you think this could be "interfering" with the HttpServer component logic? Not excatly the logic, but it will make things go wrong because calling ProcessMessages will cause events to be triggere

Re: [twsocket] Use of twsocket in thttpserver application

2009-12-07 Thread Angus Robertson - Magenta Systems Ltd
> Each time my webserver needs to "nudge" one of the other > applications then I guess I should start a thread to do this. Why do you need a thread? If you call connect to open a socket to the other application, it will eventually give a connect event with fail or success, from which you can tri

Re: [twsocket] Use of twsocket in thttpserver application

2009-12-07 Thread Chris Schofield
CS support mailing Subject: Re: [twsocket] Use of twsocket in thttpserver application > My socket connection to other programs is done in the main thread. Should not be a problem, but it could slow down the server. > > After I call connect I call application processmessages until I get > conne

Re: [twsocket] Use of twsocket in thttpserver application

2009-12-07 Thread Paul
My socket connection to other programs is done in the main thread. Should not be a problem, but it could slow down the server. After I call connect I call application processmessages until I get connected and then I close. Do you think this could be "interfering" with the HttpServer component

Re: [twsocket] Use of twsocket in thttpserver application

2009-12-07 Thread Chris Schofield
call in a separate thread better than in the main thread? Thanks for your reply Regards Chris -Original Message- From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On Behalf Of Paul Sent: 07 December 2009 13:42 To: ICS support mailing Subject: Re: [twsocket] Use of t

Re: [twsocket] Use of twsocket in thttpserver application

2009-12-07 Thread Paul
I have many Https servers running 24/7. The communication with other applications/webservices in done by several SslHttpCli's running in continuous threads and never had problems with it. Add some logging in both sever and client sockets so you at least find when the error occurs and if it occ

[twsocket] Use of twsocket in thttpserver application

2009-12-07 Thread Chris Schofield
Hi I have a web server application based on THTTPServer component. As part of the processing I need to signal a separate program that an update is required. I use a twsocket to connect the programs tcp socket to do this. This causes some issues with the Httpserver component and it "sto