Re: [twsocket] THttpWebserver and php
tnx, albert - Original Message - From: "RTT" To: "ICS support mailing" Sent: Tuesday, March 01, 2011 4:29 PM Subject: Re: [twsocket] THttpWebserver and php On 01-03-2011 10:06, A Drent wrote: I've looked into the usermade page, but which sample do you refer to? HTTPCLIEXAMPLE.ZIP ? ICS_WebInterface.zip This one may help too http://users.telenet.be/ws36637/ -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] THttpWebserver and php
I've looked into the usermade page, but which sample do you refer to? HTTPCLIEXAMPLE.ZIP ? regards Albert - Original Message - From: "Arno Garrels" To: "ICS support mailing" Sent: Monday, February 28, 2011 10:46 PM Subject: Re: [twsocket] THttpWebserver and php Fastream Technologies wrote: We have a working code for CGI1.2 for ICS. It's in pascal and used in IQWF Server (http://www.fastream.com/iqwebftpserver.php). You may contact me privately for this (gates AT fastream DOT com). There's an old example on the user-made page, that will probably work with current ICS and a few changes/patches. -- Arno Garrels Regards, SubZero On Mon, Feb 28, 2011 at 4:18 PM, A Drent wrote: Hi Francois, I am/was using your THttpServer component. I'll try your approach of using the HttpAppSvr component though. Don't have much experience with pipes, but there are a lot of samples regarding this. I will let you know how I progress, it might be nice to others too. tnx, Albert - Original Message - From: "Francois PIETTE" < francois.pie...@skynet.be> To: "ICS support mailing" Sent: Monday, February 28, 2011 3:13 PM Subject: Re: [twsocket] THttpWebserver and php btw: I answered assuming you are using THttpAppSrv component, but looking at your subject, maybe you are using THttpServer component. I suggest you use the former which is more powerful and easier. -- francois.pie...@overbyte.be The author of the freeware multi-tier middleware MidWare The author of the freeware Internet Component Suite (ICS) http://www.overbyte.be - Original Message - From: "Francois PIETTE" < francois.pie...@skynet.be> To: "ICS support mailing" Sent: Monday, February 28, 2011 2:39 PM Subject: Re: [twsocket] THttpWebserver and php Hi Albert, I found some entries regarding this issue, but could not find a sufficient answer. If I want to use the ICS webserver to facilitate a php program (I don't mind invoking php as a cgi in my case) what's the best approach. Has someone done this before? I never done it before, but at first glance, invoking a CGI from an ICS webserver application is not difficult. Invoking a CGI require the following actions: 1) Create a lot of environment variables with informations about server, client and request 2) Create pipes for input and output 3) Create the CGI process with I/O redictions to the pipes 4) Write the client request into the pipe redirected to CGI input 5) Read the pipe used for CGI output redirection until the CGI exit 6) Send the data read from the pipe to the client as the answer to the request. A single TUrlHandlercan do all of that, probably creating a worker thread to read/write the pipes and launch de CGI executable. CGI specifications can be found here: http://www.w3.org/CGI/ Now executing a request implemented as a PHP script involve deriving form TUrlHandler handler above and executing PHP interpreter configured as a CGI. I hope this helps. -- francois.pie...@overbyte.be The author of the freeware multi-tier middleware MidWare The author of the freeware Internet Component Suite (ICS) http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] THttpWebserver and php
Hi Francois, I am/was using your THttpServer component. I'll try your approach of using the HttpAppSvr component though. Don't have much experience with pipes, but there are a lot of samples regarding this. I will let you know how I progress, it might be nice to others too. tnx, Albert - Original Message - From: "Francois PIETTE" To: "ICS support mailing" Sent: Monday, February 28, 2011 3:13 PM Subject: Re: [twsocket] THttpWebserver and php btw: I answered assuming you are using THttpAppSrv component, but looking at your subject, maybe you are using THttpServer component. I suggest you use the former which is more powerful and easier. -- francois.pie...@overbyte.be The author of the freeware multi-tier middleware MidWare The author of the freeware Internet Component Suite (ICS) http://www.overbyte.be - Original Message - From: "Francois PIETTE" To: "ICS support mailing" Sent: Monday, February 28, 2011 2:39 PM Subject: Re: [twsocket] THttpWebserver and php Hi Albert, I found some entries regarding this issue, but could not find a sufficient answer. If I want to use the ICS webserver to facilitate a php program (I don't mind invoking php as a cgi in my case) what's the best approach. Has someone done this before? I never done it before, but at first glance, invoking a CGI from an ICS webserver application is not difficult. Invoking a CGI require the following actions: 1) Create a lot of environment variables with informations about server, client and request 2) Create pipes for input and output 3) Create the CGI process with I/O redictions to the pipes 4) Write the client request into the pipe redirected to CGI input 5) Read the pipe used for CGI output redirection until the CGI exit 6) Send the data read from the pipe to the client as the answer to the request. A single TUrlHandlercan do all of that, probably creating a worker thread to read/write the pipes and launch de CGI executable. CGI specifications can be found here: http://www.w3.org/CGI/ Now executing a request implemented as a PHP script involve deriving form TUrlHandler handler above and executing PHP interpreter configured as a CGI. I hope this helps. -- francois.pie...@overbyte.be The author of the freeware multi-tier middleware MidWare The author of the freeware Internet Component Suite (ICS) http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
[twsocket] THttpWebserver and php
I found some entries regarding this issue, but could not find a sufficient answer. If I want to use the ICS webserver to facilitate a php program (I don't mind invoking php as a cgi in my case) what's the best approach. Has someone done this before? tnx, Albert -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] Concurrency of multiple THttpCli instances
Sorry for this post, I was replying the wrong mail. albert - Original Message - From: "A Drent" To: "ICS support mailing" Sent: Thursday, November 11, 2010 11:19 AM Subject: Re: [twsocket] Concurrency of multiple THttpCli instances Ok. T.a.v. het betalen op rekening, kun je t.a.v. het 'ontwerp' hier nu verder mee? vr.gr. Albert - Original Message - From: "Arno Garrels" To: "ICS support mailing" Sent: Thursday, November 11, 2010 11:16 AM Subject: Re: [twsocket] Concurrency of multiple THttpCli instances Fastream Technologies wrote: So it's getting better but it uses less than 20% CPU overall (only 1 of 4 cores is utilized) and our ICS-based process uses only 10% in task manager! What may be preventing it to use 100%? Looks like your instances are running all in the same thread context, means the hidden ICS window(s) has been created in the same thread context. -- Arno Garrels -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] Concurrency of multiple THttpCli instances
Ok. T.a.v. het betalen op rekening, kun je t.a.v. het 'ontwerp' hier nu verder mee? vr.gr. Albert - Original Message - From: "Arno Garrels" To: "ICS support mailing" Sent: Thursday, November 11, 2010 11:16 AM Subject: Re: [twsocket] Concurrency of multiple THttpCli instances Fastream Technologies wrote: So it's getting better but it uses less than 20% CPU overall (only 1 of 4 cores is utilized) and our ICS-based process uses only 10% in task manager! What may be preventing it to use 100%? Looks like your instances are running all in the same thread context, means the hidden ICS window(s) has been created in the same thread context. -- Arno Garrels -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] client problem
No. Actually it works like the tcpclientdemo. I disconnect when the data is received fully. Then I wait for a new request from the webserver. Then I send the data to the appserver by connecting again. It's like hitting disconnect button, then fill string and hit send in the demo. albert - Original Message - From: "wilfried Mestdagh" To: "'ICS support mailing'" Sent: Tuesday, May 04, 2010 4:29 PM Subject: Re: [twsocket] client problem Hi, Do you reconnect in the OnClose event? If so do it outside it by posting a message to a custom message handler. -- mvg, Wilfried http://www.mestdagh.biz http://www.comfortsoftware.be -Oorspronkelijk bericht- Van: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] Namens A Drent Verzonden: dinsdag 4 mei 2010 15:50 Aan: ICS support mailing Onderwerp: Re: [twsocket] client problem I managed to solve this issue, point was that the banner is alway sent and I was closing the socket while data was still sent. I'm now closing the socket at the right time and this works well now (verified on server). However another problem arises. If I reconnect I get a WSAAsyncSelect exception. Invalid argument (#10022 in WSAAsyncSelect) from the line SocketError('WSAAsyncSelect'); in OverbyteICSSocket. Now this realy puzzles me. I've waited for all the events to occur before closing the socket. I wait for the event that the socket is closed. Then I want to send new data, the socket is filled with the correct parms, connected and... the error. Anybody knows why? albert - Original Message - From: "A Drent" To: Sent: Tuesday, May 04, 2010 12:11 PM Subject: [twsocket] client problem I have a small webapplication who needs to connect to several servers depending on the data sent. The response of this server will be send back to the end-user. The server responds well. If I use the clientdemo it all works as expected. However, in my webapplication things go wrong while the code is straight forward like the clientdemo. There are only a few things differently: I need a synchronous call. So I have to wait until the ondatasent has finished. On this event I set a status bit to allow the application to go on. The first time it works, the second time, it doesn't, the third time it works, etc. I'm using the messagepump of the clientsocket to wait: function TWebModule5.BuildUDDI : string; begin bMsgOk := false; while not bMsgOk do begin CliSocket.MessagePump; sleep(100); end; result := Buffer; end; I'm sure I'm doing things wrong. Hints? albert -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] client problem
I managed to solve this issue, point was that the banner is alway sent and I was closing the socket while data was still sent. I'm now closing the socket at the right time and this works well now (verified on server). However another problem arises. If I reconnect I get a WSAAsyncSelect exception. Invalid argument (#10022 in WSAAsyncSelect) from the line SocketError('WSAAsyncSelect'); in OverbyteICSSocket. Now this realy puzzles me. I've waited for all the events to occur before closing the socket. I wait for the event that the socket is closed. Then I want to send new data, the socket is filled with the correct parms, connected and... the error. Anybody knows why? albert - Original Message - From: "A Drent" To: Sent: Tuesday, May 04, 2010 12:11 PM Subject: [twsocket] client problem I have a small webapplication who needs to connect to several servers depending on the data sent. The response of this server will be send back to the end-user. The server responds well. If I use the clientdemo it all works as expected. However, in my webapplication things go wrong while the code is straight forward like the clientdemo. There are only a few things differently: I need a synchronous call. So I have to wait until the ondatasent has finished. On this event I set a status bit to allow the application to go on. The first time it works, the second time, it doesn't, the third time it works, etc. I'm using the messagepump of the clientsocket to wait: function TWebModule5.BuildUDDI : string; begin bMsgOk := false; while not bMsgOk do begin CliSocket.MessagePump; sleep(100); end; result := Buffer; end; I'm sure I'm doing things wrong. Hints? albert -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] client problem
- Original Message - From: "Dod" To: "ICS support mailing" Sent: Tuesday, May 04, 2010 2:25 PM Subject: Re: [twsocket] client problem Hello, Why don't you simply set bMsgOK:=true when OnDataSent event occure and change your loop into an application.processmessages loop instead a CliSocket.MessagePump ? regards. AFAIK you should never use your own messagepump which could come in conflict with the components. But I can be mistaken though. albert -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
[twsocket] client problem
I have a small webapplication who needs to connect to several servers depending on the data sent. The response of this server will be send back to the end-user. The server responds well. If I use the clientdemo it all works as expected. However, in my webapplication things go wrong while the code is straight forward like the clientdemo. There are only a few things differently: I need a synchronous call. So I have to wait until the ondatasent has finished. On this event I set a status bit to allow the application to go on. The first time it works, the second time, it doesn't, the third time it works, etc. I'm using the messagepump of the clientsocket to wait: function TWebModule5.BuildUDDI : string; begin bMsgOk := false; while not bMsgOk do begin CliSocket.MessagePump; sleep(100); end; result := Buffer; end; I'm sure I'm doing things wrong. Hints? albert -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] www.overbyte.be down?
I don't have any problems albert - Original Message - From: "Markus Humm" To: "ICS support mailing" Sent: Monday, March 01, 2010 9:15 PM Subject: [twsocket] www.overbyte.be down? Hello, is it only me who get's a timeout when trying to open www.overbyte.be or is this a general problem? Greetings Markus -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] OT: IPv4 address shortage reaching critical stage
IMHO it's not very easy to keep backwards compatibility. And this is very important. -- Just curious, why? AFAIK Ip6 is not compatible to Ip4, so why not implement a new branch? Or is the idea that one component should be able to handle all? albert -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
[twsocket] libeay32.dll issue
I've tried to convert a D6 ftps app to D2007. This goes well. However when running I get a compatibility error about libeay32.dll. That can be correct so I downloaded from the link on the overbyte the openssl version. However there are only lib files and no dll's. Am I missing some things or do things work differently nowadays? regards, Albert Drent university of Groningen -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] Website hacked?
Yes, I have a popup-blocker too, but clicking on ics opened a separate session containing an add for a phone sms contest. Tried it again, and that one is gone, but the page still attemps to start a popup. Didn't know that is was google adds though. albert - Original Message - From: "Angus Robertson - Magenta Systems Ltd" To: Sent: Tuesday, November 03, 2009 10:15 AM Subject: Re: [twsocket] Website hacked? I just visited www.overbyte.be At this point my Firefox Popup-Blocker stopped a popup. I see no pop-ups on the front page, there never have been pop-ups. Now when clicking on the ICS link on the left bar (under Products) I get a new window of some commercial site (e.g. a US Green Card lottery). I simply see a new ICS web page, no new window, no pop-up, no adverts. I'm using the latest Firefox. However Adblock Plus has blocked: http://pagead2.googlesyndication.com/pagead/show_ads.js from the ICS pages, so if something is infected, it's Google. It's unfortunately that the ICS web pages are invested with horrible adverts, although I never see them due to Adblock. I also have: 127.0.0.1 pagead2.googlesyndication.com #[Google AdWords] in my HOSTS file, which comes from http://www.mvps.org/winhelp2002/ and which blocks thousands of other ads and porn sites. Angus -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] Website hacked?
- Original Message - From: "Fastream Technologies" To: "ICS support mailing" Sent: Tuesday, November 03, 2009 9:53 AM Subject: Re: [twsocket] Website hacked? Hi, I saw a game ad when I click "products" in a popup! Regards, SZ On Tue, Nov 3, 2009 at 10:50 AM, Stefan Paege wrote: Hi, I just visited www.overbyte.be At this point my Firefox Popup-Blocker stopped a popup. Now when clicking on the ICS link on the left bar (under Products) I get a new window of some commercial site (e.g. a US Green Card lottery). I tried a few times and a new window pops up every time. Intended or not? Regards -- elektronik-labor CARLS GmbH & Co. KG Stefan Paege Fon: +49 5973 9497-23 Fax: +49 5973 9497-19 elektronik-labor CARLS GmbH & Co. KG Kommanditgesellschaft: Sitz Neuenkirchen, Registergericht Steinfurt HRA 3310 Persönlich haftende Gesellschafterin: elektronik-labor CARLS, Beteiligungsgesellschaft mbH, Sitz Neuenkirchen, Registergericht Steinfurt HRB 4175 Geschäftsführer: Irmgard Carls, Joachim Schulte -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be I got a US lottery. It looks like there's a hack? albert -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] Website hacked?
I've never seen this, have posted it on the ics newsgroup for explanation. albert - Original Message - From: "Stefan Paege" To: Sent: Tuesday, November 03, 2009 9:50 AM Subject: [twsocket] Website hacked? Hi, I just visited www.overbyte.be At this point my Firefox Popup-Blocker stopped a popup. Now when clicking on the ICS link on the left bar (under Products) I get a new window of some commercial site (e.g. a US Green Card lottery). I tried a few times and a new window pops up every time. Intended or not? Regards -- elektronik-labor CARLS GmbH & Co. KG Stefan Paege Fon: +49 5973 9497-23 Fax: +49 5973 9497-19 elektronik-labor CARLS GmbH & Co. KG Kommanditgesellschaft: Sitz Neuenkirchen, Registergericht Steinfurt HRA 3310 Persönlich haftende Gesellschafterin: elektronik-labor CARLS, Beteiligungsgesellschaft mbH, Sitz Neuenkirchen, Registergericht Steinfurt HRB 4175 Geschäftsführer: Irmgard Carls, Joachim Schulte -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] TSmtpCli Error 451
- Original Message - From: "Arno Garrels" To: "ICS support mailing" Sent: Wednesday, October 28, 2009 4:02 PM Subject: Re: [twsocket] TSmtpCli Error 451 Hello Max, With a program sending multiple emails, one user is getting this: MAIL FROM: < 250 ... Sender ok RCPT TO: < 451 Too many messages Send failed RequestDone Rq=9 Error=451 Disconnect failed RequestDone Rq=6 Error=451 First, am I right in assuming this is a mail server issue? Correct. Or could there be something I can do with ICS other than just failing gracefully? The number of emails involved is actually quite modest (here the process failed after 25 emails had been sent). Are those messages just carbon copies or blind carbon copies? If so, you could try to issue Data when you get the 451 error, and send the next 25 after command Reset if the server does not drop the connection of course. Second, how can I avoid the Disconnect failed error as well? Where does it come from? Does the server disconnect the line? -- Arno Garrels -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be There are hosts who limit the amount of mails send per hour. If this is the case then splitting the bulk will not work as this will not influence the amount of emails sent per hour. I had an issue with that with my provider while mailing a newsletter. After I reached 100 I could not send any mail that hour, not even my private mail. So it's a mail server issue, but also a provider issue. albert -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] Upgrading from ICS to ICS-SSL
I'm not sure about the 'public' release, but we have used the ssl components a lot with D6. But this was in the time that the ssl components where not open-source. albert - Original Message - From: "Arno Garrels" To: "ICS support mailing" Sent: Tuesday, August 25, 2009 9:34 AM Subject: Re: [twsocket] Upgrading from ICS to ICS-SSL Jeff Cook wrote: Hi Arno I think that I've hit a show stopper! The link you gave me includes the comment "SSL option requires at least Delphi 7 or C++Builder 2006. " - but I'm running Delphi 6!!! Is any way to run SSL with Delphi 6? I'm pretty sure it was possible to compile ICS v5 + SSL with D6 as well. Most likely just a few changes were required, but I cannot test this since I do not own Delphi 6. If not, I'm looking at the time and cost of upgrading my app to Delphi version X (whatever version I should go to?) + worrying about all the 3-party components that may or may not have current versions ... If you do not want to upgrade your applications to support Unicode Delphi 2007 was first choice, it's the last available ANSI compiler and is well supported by most third parties. BUT on www.overbyte.be it says ... [ Download the latest ICS-V5 Distribution ] Support all Delphi 1-2007 and BCB versions 1-6 Now with ICS-SSL for free. Download the required files. ... Which implies that I can use D6 - so maybe not a show stopper. From memory this version was buggy, my fixes never made it into the published ZIP, it was IMO easier to port latest ICS-SSL v5 available at the wiki site to Delphi 6. -- Arno Garrels -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] Converting an IIS/ASP3 site to an ICS web application
Disadvantages - needs co-operative hosting company or dedicated server, currently uses one (rare) public IP per site since virtual hosts not really supported in THttpAppSrv, no SSL in THttpAppSrv yet Hi Arno, This is a great story of a complex project. To prove the quality of ICS more, a short story how we use ics for webapplication development. It's different than your approach and it migh give people some alternatives to think about. We have build a general applicationserver in Delphi with ICS. It manages the application. It's built as an isapi dll, runs on apache and uses ICS so communicate with a db-independent queryserver (build in Delphi with ICS) through the soap protocol. The html webpart is build with Intraweb. It's communicating though soap with the applicationserver. Soap clients are directly communicating to the application server. soap client ---> isapi soap server ---> queryserver webapp ---> Intraweb isapi > isapi soap server --> queryserver We have several configurations running in health care and it works great. Point of this is that it is very well possible to create applicationservers using the soap components from Delphi and attach them to ICS. In fact it was fairly simple. The queryserver stores queries and db credentials and works like a 'stored-procedure' engine. It's not possible to access the db directly which, at least in healthcare, is a major security advantage. It runs on dedicated servers as well as on virtual servers however it needs to be a windows one. Fortunately prices have been decreased a lot lately due to better virtualisation software. This approach is not better than the previous, but different. Who has other stories? I'm very interested to the different approaches as we all like to learn from each other. albert drent -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] Remote file/folder selection routine for ICSwithHTML/JS
There are several ways to do this, but bottom line is that there needs to be a webapplication to select the files and do some action. This can be done in the sll application server, using a separate webserver like ics demo, Intraweb, through webservices etc.etc. It depends on what you want to do exactly. But create a listing of files is not so hard to do ;-) We use a soa application server based upon ics to do this and a intraweb application is communicating through soa to it. It all works with the standard Delphi stuff (HTTPRio <-> HTTPSoapPascalInvoker). albert - Original Message - From: "Arno Garrels" To: "ICS support mailing" Sent: Wednesday, April 15, 2009 4:03 PM Subject: Re: [twsocket] Remote file/folder selection routine for ICSwithHTML/JS > Fastream Technologies wrote: >> Yes I need something similar. Actually I will have a SSL server and >> need the client to select files such as cert and privkey from remote >> file system. > > Something similar is already available in the THttpServer. > Have look at option "Allow Dir List" in the Delphi (non-SSL) > webserver demo. > > -- > Arno Garrels > >> >> Regards, >> >> SZ >> >> >> On 4/15/09, A Drent wrote: >>> >>> Not sure what you want exactly. Something like this? >>> >>> function TFMain.FDir(Cmd : string) : string; >>> var >>> sr: TSearchRec; >>> FileAttrs: Integer; >>> begin >>> FileAttrs := faAnyFile; >>> if Cmd = '' then Cmd := '\*.*'; >>> >>> if FindFirst(ExtractFileDir(ParamStr(0))+cmd, FileAttrs, sr) = 0 then >>> result := ExtractFileDir(ParamStr(0))+cmd+''; >>> begin >>> repeat >>>result := result + ''+sr.Name+ >>> ''+IntToStr(sr.Size)+ >>> ''+FormatDateTime('-mm-dd >>> hh:nn:ss',FileDateToDateTime(sr.Time))+ >>> ''+#10; >>>until FindNext(sr) <> 0; >>>FindClose(sr); >>> end; >>> result := result +''; >>> end; >>> >>> It's a part of our applicationserver based upon the work of ics... >>> >>> albert >>> - Original Message - >>> From: "Fastream Technologies" >>> To: "ICS support mailing" >>> Sent: Wednesday, April 15, 2009 12:04 PM >>> Subject: [twsocket] Remote file/folder selection routine for ICS with >>> HTML/JS >>> >>> >>>> Hello, >>>> >>>> Is there ready code for this available? If not, are there other >>>> people needing such a feature? What kind of approach would you >>>> suggest? How much should one be willing to pay for sponsoring such >>>> a work and to whom? >>>> >>>> Best Regards, >>>> >>>> SZ >>>> -- >>>> To unsubscribe or change your settings for TWSocket mailing list >>>> please goto >>>> http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our >>>> website at http://www.overbyte.be >>>> >>> >>> -- >>> To unsubscribe or change your settings for TWSocket mailing list >>> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket >>> Visit our website at http://www.overbyte.be > -- > To unsubscribe or change your settings for TWSocket mailing list > please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket > Visit our website at http://www.overbyte.be > -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] Remote file/folder selection routine for ICS with HTML/JS
Not sure what you want exactly. Something like this? function TFMain.FDir(Cmd : string) : string; var sr: TSearchRec; FileAttrs: Integer; begin FileAttrs := faAnyFile; if Cmd = '' then Cmd := '\*.*'; if FindFirst(ExtractFileDir(ParamStr(0))+cmd, FileAttrs, sr) = 0 then result := ExtractFileDir(ParamStr(0))+cmd+''; begin repeat result := result + ''+sr.Name+ ''+IntToStr(sr.Size)+ ''+FormatDateTime('-mm-dd hh:nn:ss',FileDateToDateTime(sr.Time))+ ''+#10; until FindNext(sr) <> 0; FindClose(sr); end; result := result +''; end; It's a part of our applicationserver based upon the work of ics... albert - Original Message - From: "Fastream Technologies" To: "ICS support mailing" Sent: Wednesday, April 15, 2009 12:04 PM Subject: [twsocket] Remote file/folder selection routine for ICS with HTML/JS > Hello, > > Is there ready code for this available? If not, are there other people > needing such a feature? What kind of approach would you suggest? How much > should one be willing to pay for sponsoring such a work and to whom? > > Best Regards, > > SZ > -- > To unsubscribe or change your settings for TWSocket mailing list > please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket > Visit our website at http://www.overbyte.be > -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] SMS - How to send SMS from a Delphi Application
You just need a contract with a smsbroker and then you just need to send a simple xml message. This can be done in almost any enviroment and is not 'rocket science' actually. So there's no standard component (the messages are not standard, but depending on sms provider) but actually it's so simple that you don't need them. albert - Original Message - From: "Mark Moss" To: Sent: Friday, February 13, 2009 9:54 PM Subject: [twsocket] SMS - How to send SMS from a Delphi Application > Ladies / Gentlemen > > >Is the a component or source code available that would allow me to > Send SMS messages to peoples phones from my Delphi Application? > > > Mark Moss > USA > -- > To unsubscribe or change your settings for TWSocket mailing list > please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket > Visit our website at http://www.overbyte.be > -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
[twsocket] TX509Base
TX509Base: I'm probabely overlook things again, but where is this class defined? I'm trying to locate it, but cannot find it. albert -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] installing ssl
I had no intent to offence anybody. Sorry. Albert - Original Message - From: "Arno Garrels" To: "ICS support mailing" Sent: Thursday, December 18, 2008 6:42 PM Subject: Re: [twsocket] installing ssl > Darin McGee wrote: >> Thanks for figuring that out Albert, definitely a bug in the package >> off the SV. > > Definitely, all the packages mentioned in this thread build and install > fine on my different systems XP, W2K, VM, real box etc. and different > Delphi > versions. If they do not work for you they must be buggy of course > (sarcasm, > sorry). > > -- > Arno Garrels > > > > -- > To unsubscribe or change your settings for TWSocket mailing list > please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket > Visit our website at http://www.overbyte.be > -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] installing ssl
Ok problem is solved. The parameter in the conditional defines is NOT used. This looks like a bug in the package. But if you set use_ssl in the overbyteicsdefs.inc then it will work. Isue closed :-) albert - Original Message - From: "A Drent" To: "ICS support mailing" Sent: Thursday, December 18, 2008 2:57 PM Subject: Re: [twsocket] installing ssl > Then something must be wrong with the package. If I open the project there > are the following defines: > > USE_SSL;USE_ZLIB_OBJ > > If I go to the projectmanager and request for install the reported problem > will arise. It does on two different engines now. As a contributor to ssl, > I > hadn't the problem before, just now when I want to upgrade to the Overbyte > component set. > > I'm using D2007 and ... ssldel100package > > albert > > - Original Message - > From: "Arno Garrels" > To: "ICS support mailing" > Sent: Thursday, December 18, 2008 2:45 PM > Subject: Re: [twsocket] installing ssl > > >>A Drent wrote: >>>> You may install only one of the two packages at the same time. >>> >>> Yes, I'm aware of that. As stated, I used a fresh install. When it >>> went wrong I tried the other package just to be sure. I'll remove the >>> non-ssl version when I have some hints to get the ssl thing going. >> >> I just installed the Delphi 2006 package from the SVN V6 repository >> again w/o any problem, it should be the same file as included in the >> ZIP since it has not changed since the repository went online. >> >>> Undeclared identifier 'tsslbasecomponent' in OverbyteIcsSSLSessionCache. >> >> That is exactly the error you'll get when conditional define USE_SSL >> is not defined in the package project options. >> >> -- >> Arno Garrels [TeamICS] >> http://www.overbyte.be/eng/overbyte/teamics.html >> >> >> >> >> >>> albert >>> >>> >>> - Original Message - >>> From: "Arno Garrels" >>> To: "ICS support mailing" >>> Sent: Thursday, December 18, 2008 1:55 PM >>> Subject: Re: [twsocket] installing ssl >>> >>> >>>> A Drent wrote: >>>>> component is found in overbyteicswsocket.pas. I had same trouble on >>>>> my old engine so I must be doing something wrong? the other package >>>>> (w.o. ssl) does compile and install. >>>> >>>> You may install only one of the two packages at the same time. >>>> So before installing the SSL package you have to remove/uninstall the >>>> non-SSL package under Component | Install Packages. >>>> >>>> -- >>>> Arno Garrels [TeamICS] >>>> http://www.overbyte.be/eng/overbyte/teamics.html >>>> >>>> >>>> >>>> >>>> -- >>>> To unsubscribe or change your settings for TWSocket mailing list >>>> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket >>>> Visit our website at http://www.overbyte.be >> -- >> To unsubscribe or change your settings for TWSocket mailing list >> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket >> Visit our website at http://www.overbyte.be >> > > > -- > To unsubscribe or change your settings for TWSocket mailing list > please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket > Visit our website at http://www.overbyte.be > -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] TWSocket Digest, Vol 300, Issue 3
Ok, used the wrong package, now using the 110 version. projectoptions searchpath ..\vc32 conditional defines USE_SSL;USE_ZLIB_OBJ;DEBUG ... same problem. albert - Original Message - From: To: Sent: Thursday, December 18, 2008 1:00 PM Subject: TWSocket Digest, Vol 300, Issue 3 > Send TWSocket mailing list submissions to > twsocket@elists.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket > or, via email, send a message with subject or body 'help' to > twsocket-requ...@elists.org > > You can reach the person managing the list at > twsocket-ow...@elists.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of TWSocket digest..." > > > Today's Topics: > > 1. Mailing list usage (Anton Sviridov) > 2. Need help with NTLM (reverse proxy side) (Fastream Technologies) > 3. Re: Mailing list usage (Francois Piette) > 4. Re: Mailing list usage (Guillaume ROQUES) > 5. Re: Mailing list usage (Arno Garrels) > 6. Re: Mailing list usage (Maurizio Lotauro) > 7. WriteCount property proposal (Anton Sviridov) > 8. Re: No specified BCB6 projects in OverbyteIcsV6 RC1 (Ko Brink) > 9. Re: Mailing list usage (Jeff Hamblin) > 10. Re: Mailing list usage (Dod) > 11. Mailing list usage (Anton Sviridov) > 12. installing ssl (A Drent) > > > -- > > Message: 1 > Date: Wed, 17 Dec 2008 15:09:55 +0300 > From: "Anton Sviridov" > Subject: [twsocket] Mailing list usage > To: "twsocket@elists.org" > Message-ID: > Content-Type: text/plain; charset=windows-1251 > >>Only for lazy people that attach the entire previous message including >>all the unsubscribe information. > > http://lists.elists.org/pipermail/twsocket/2008-December/039307.html > > So Arno is lazy? :) > >>But most forums I see also include massive quoting, and show entire >>threads on a single page, so you have to scroll past all the messages >>you've seen before to see is anyone has added a comment. So you waste >>hours and hours looking for new messages, unlike a decent email client >>that allows each new email message to be seen by a simple CR key. Ditto >>a decent NNTP reader. So I rarely read any web forums. > > Yes, there are people who use to overquote posts though it's usually a > forbidden thing on most forums. I hate them :) But what's the goal of > quoting? To track discussion in a mess of tens various topics, as now. But > in forums topics are already divided, and when you open topic, you see all > previous messages, so there is no need of quotes or they can be small. New > messages? All forum implementations allow "Unread messages" feature - you > see which posts you haven't read. Moreover, there is one pretty good thing > like RSS, which allows to be always informed about new messages. > > And another argument: if I wish to save the whole thread, what should I do > now? Download archive, select needed messages and merge it by hands? > > -- > Regards, Anton > > > -- > > Message: 2 > Date: Wed, 17 Dec 2008 14:44:02 +0200 > From: "Fastream Technologies" > Subject: [twsocket] Need help with NTLM (reverse proxy side) > To: "ICS support mailing" > Message-ID: > <9c4359460812170444j6b858d41ufe9600badeace...@mail.gmail.com> > Content-Type: text/plain; charset=UTF-8 > > Hello, > > Customers have reported that MS Sharepoint and Exchange is not working > well > with NTLM auth and our reverse proxy. What I thought was reverse proxy > being > transparent and just send the request and response headers back and forth > to > web server (that I receive from browser). However, the issue is a CORRECT > password is never accepted. (This is in tunneling mode--when I handle NTLM > ended on reverse proxy it works.). ISA Server and Squid work fine. Any > clues?? > > Best Regards, > SZ > > > -- > > Message: 3 > Date: Wed, 17 Dec 2008 14:04:17 +0100 > From: "Francois Piette" > Subject: Re: [twsocket] Mailing list usage > To: "ICS support mailing" > Message-ID: <043001c96047$fc1d6860$0243a...@chrliege.be> > Content-Type: text/plain; charset="iso-8859-1" > >> wouldn't it better to switch to modern technologies like message > boards/forums? > > For many reason I already exposed several times here, my prefer using a > mailing list. > I will not start the discussion here. It's enough to say
Re: [twsocket] installing ssl
Then something must be wrong with the package. If I open the project there are the following defines: USE_SSL;USE_ZLIB_OBJ If I go to the projectmanager and request for install the reported problem will arise. It does on two different engines now. As a contributor to ssl, I hadn't the problem before, just now when I want to upgrade to the Overbyte component set. I'm using D2007 and ... ssldel100package albert - Original Message - From: "Arno Garrels" To: "ICS support mailing" Sent: Thursday, December 18, 2008 2:45 PM Subject: Re: [twsocket] installing ssl >A Drent wrote: >>> You may install only one of the two packages at the same time. >> >> Yes, I'm aware of that. As stated, I used a fresh install. When it >> went wrong I tried the other package just to be sure. I'll remove the >> non-ssl version when I have some hints to get the ssl thing going. > > I just installed the Delphi 2006 package from the SVN V6 repository > again w/o any problem, it should be the same file as included in the > ZIP since it has not changed since the repository went online. > >> Undeclared identifier 'tsslbasecomponent' in OverbyteIcsSSLSessionCache. > > That is exactly the error you'll get when conditional define USE_SSL > is not defined in the package project options. > > -- > Arno Garrels [TeamICS] > http://www.overbyte.be/eng/overbyte/teamics.html > > > > > >> albert >> >> >> - Original Message - >> From: "Arno Garrels" >> To: "ICS support mailing" >> Sent: Thursday, December 18, 2008 1:55 PM >> Subject: Re: [twsocket] installing ssl >> >> >>> A Drent wrote: >>>> component is found in overbyteicswsocket.pas. I had same trouble on >>>> my old engine so I must be doing something wrong? the other package >>>> (w.o. ssl) does compile and install. >>> >>> You may install only one of the two packages at the same time. >>> So before installing the SSL package you have to remove/uninstall the >>> non-SSL package under Component | Install Packages. >>> >>> -- >>> Arno Garrels [TeamICS] >>> http://www.overbyte.be/eng/overbyte/teamics.html >>> >>> >>> >>> >>> -- >>> To unsubscribe or change your settings for TWSocket mailing list >>> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket >>> Visit our website at http://www.overbyte.be > -- > To unsubscribe or change your settings for TWSocket mailing list > please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket > Visit our website at http://www.overbyte.be > -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] installing ssl
> You may install only one of the two packages at the same time. Yes, I'm aware of that. As stated, I used a fresh install. When it went wrong I tried the other package just to be sure. I'll remove the non-ssl version when I have some hints to get the ssl thing going. albert - Original Message - From: "Arno Garrels" To: "ICS support mailing" Sent: Thursday, December 18, 2008 1:55 PM Subject: Re: [twsocket] installing ssl >A Drent wrote: >> component is found in overbyteicswsocket.pas. I had same trouble on >> my old engine so I must be doing something wrong? the other package >> (w.o. ssl) does compile and install. > > You may install only one of the two packages at the same time. > So before installing the SSL package you have to remove/uninstall the > non-SSL package under Component | Install Packages. > > -- > Arno Garrels [TeamICS] > http://www.overbyte.be/eng/overbyte/teamics.html > > > > > -- > To unsubscribe or change your settings for TWSocket mailing list > please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket > Visit our website at http://www.overbyte.be > -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
[twsocket] installing ssl
Sorry, I have posted this before, but have not a solution yet. I have a new engine and installed Delphi fresh. I opened package OverbyteIcsSSLDel100package.bpl and hit 'install'. Then I get the error: Undeclared identifier 'tsslbasecomponent' in OverbyteIcsSSLSessionCache. If I do a right mouseclick / find declaration the component is found in overbyteicswsocket.pas. I had same trouble on my old engine so I must be doing something wrong? the other package (w.o. ssl) does compile and install. albert -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] SSL install problem (Arno Garrels)
Yes, both packages do exists. But only the non-ssl version installs ok, the ssl one gives me the compile errors. I need the ssl installation because I need to be able to recompile our ssl projects. albert > > A Drent wrote: >> (tried to post this through the ics-ssl list, but since my email >> changed to albert dot drent at rug dot nl I was bounsed. Francois, >> could you correct this please?) >> >> --- > > Posting ICS-SSL questions to this list is fine. > >> >>> From a long time I decided to upgrade the ics ssl components. Since >>> it is >> open-source now I downloaded the v6package and found two packages: >> C:\Components\ICS6\Delphi\Vc32\OverbyteIcsDel100Package.dproj >> >> and >> C:\Components\ICS6\Delphi\Vc32\OverbyteIcsSSLDel100Package.dproj >> >> They look the same to me since only ssl is enabled in the project >> option. > > Both package files you mention above do not exist? > > The SSL packages include everything from the non-SSL packages. > If you don't need the SSL overhead install the non-SSL package, > it is impossible to install both. > > Make sure that your library path points to the correct directory, > remove any library path that points to another ICS directory and > remove a previously installed ICS package. > > In Delphi 2006 build and install OverbyteIcsSslDel100Package.bdsproj > In Delphi 2007 build and install OverbyteIcsSslDel110Package.dproj > > -- > Arno Garrels [TeamICS] > http://www.overbyte.be/eng/overbyte/teamics.html > -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
[twsocket] SSL install problem
(tried to post this through the ics-ssl list, but since my email changed to albert dot drent at rug dot nl I was bounsed. Francois, could you correct this please?) --- >From a long time I decided to upgrade the ics ssl components. Since it is open-source now I downloaded the v6package and found two packages: C:\Components\ICS6\Delphi\Vc32\OverbyteIcsDel100Package.dproj and C:\Components\ICS6\Delphi\Vc32\OverbyteIcsSSLDel100Package.dproj They look the same to me since only ssl is enabled in the project option. Installing these get me the error Undeclared identifier 'TsslBaseComponent' in OverbyteIcsSslSessionCache.pas. (and a lot more errors) I'm sure I'm overlooking something, but the original old package worked. What am I overlooking? Best regards, Albert Drent University of Groningen -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
[twsocket] Design isue
Until now I alway build our applications using 'normal' sockets. Currently I've got an application server build which is running well for years now. Now I've modified the server so it is able to process soap messages. The soap messages are send by the webserver to the application server on another engine, parsed and executed and result is sent back. So far so good. But I wonder, when do I have to use a threaded approach. 'Long' and 'blocking' as said in the ics sample is very vague for me. I ask this because of a possible near redesign of the server. Albert Drent University of Groningen -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
[twsocket] Converting some perl to Delphi using sockets
Hi, We use a small perl script to exchange data between a webserver and an application server. I was looking to change this to Delphi. Can someone give a hint how to do this the best way using the ICS components? Best regards, Albert Drent university of Groningen use IO::Socket; # # To let this script work, please replace the PeerAddr by the # correct application server ip address (default 'localhost') and replace # the PeerPort by the correct application server port # $envString=GetEnvVariables(); $remote=IO::Socket::INET->new(Proto=>"tcp", PeerAddr=>'127.0.0.1', PeerPort=>'1099') or ShowError("[1099] Can't connect to server"); $remote->autoflush(1); binmode($remote); # # Send data to the application server # print $remote $envString; # # Retrieve data from the application server and send it back to # the web-server # binmode($remote); binmode(STDOUT); while(<$remote>){join print; } # # ok... all done! # close($remote); # # e n d o f p r o g r a m # # -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
[twsocket] Some socket problems
I want to create a webapplication and use TWSocket to ask questions to a remote server. If I create a cgi application it works well. But if I want to test the application under webappdebug things go wrong: I 've got a WebModuleBeforeDispatch event where I do the connection to a remote server. After receiving sessionavailable I send a command to the server. The answer is retrieved (dataavailable) on 'sessionclosed' I assume the anser is ready and given back to the webserver. However the first time it goes well, but refreshing a page gives me Error 10022 in function WSAAsyncSelect Invalid argument I've tried to add a close, closedelayed, abort, shutdown etc. in the sessionclosed event, but this does not help. Also I found that after the first call the component thinks that I have not set the port, protocol and ip. So I need to setup the connection on every time I need to connect. I know I'm doing something stupid, but what's going on? albert -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be