Re: [twsocket] RPTD Q: Can Dup be called from worker thread?

2006-03-22 Thread Francois Piette
> We are writing a multi-threaded ICS HTTP Server component > for ICS and need some help. > Can Dup be called from worker thread? Dup must be called from the thread which created the instance whatever this thread is. -- Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html --

Re: [twsocket] ICS V6 Http Post problem

2006-03-22 Thread Francois Piette
In your application, are you calling the message pump somewhere ? Specially from one of the ICS component event handler ? This will cause a lot of trouble with the events. btw: The message pump is typically Application.ProcessMessages, but can also be anythoing calling it indirectly (such as a m

Re: [twsocket] twsocket and proxy

2006-03-22 Thread Arno Garrels
[EMAIL PROTECTED] wrote: > Hello > > Issue: > I connect to internet thru a http proxy. > What should I do in orger to make a link between a client and a server > disposed on both sides of the proxy ? Currently this protocol is supported only in the THttpcli component. If you need it with TWSocke

[twsocket] RPTD Q: Can Dup be called from worker thread?

2006-03-22 Thread Fastream Technologies
Hello, We are writing a multi-threaded ICS HTTP Server component for ICS and need some help. You may begin by answering the question above. Regards, SZ -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our we

[twsocket] twsocket and proxy

2006-03-22 Thread [EMAIL PROTECTED]
Hello Issue: I connect to internet thru a http proxy. What should I do in orger to make a link between a client and a server disposed on both sides of the proxy ? 10q ___ No banners. No pop-ups. No kidding. Make My Way your home on the Web - http

[twsocket] ICS V6 Http Post problem

2006-03-22 Thread Frans van Daalen
Already asked this in the borland newsgroup but was advised to asked it here again. I use v6 latest beta and if I do a asyncpost wiht some long parameters like Para1= ¶2=b ¶3=..(about 1600 chars) I will see something else with a sniffer Para1= ¶2=b ¶3=..( only a

Re: [twsocket] TWSocket Question

2006-03-22 Thread Wilfried Mestdagh
Hello Philip, > TCP server this connects to sends me a set size data block When you receive the size data block, then allocate memory for it, start concatenating data packets until you have received the exact size of the data. You have to save in a variable what is received, and what is left, to

[twsocket] TWSocket Question

2006-03-22 Thread Philip Colley
Hi I've been using a TWSocket component successfully in one of my home automation plug-in applications for several weeks now by using line mode with a #13 line end. This was really easy to set up and get working. Now I want to use the TWSocket in another plug-in application, however the TCP serv

Re: [twsocket] WSocketTS

2006-03-22 Thread Fastream Technologies
Server shuts down--no longer listening. Anyway, I decided to implement and donate a MT web server to ICS community. So far WSocketMTSrv compiles with a critical section for FClient list. I am working on: {* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *} { Called when

Re: [twsocket] WSocketTS

2006-03-22 Thread Arno Garrels
Fastream Technologies wrote: >> WaitForSingleObject would work also but is dangerous. >> - First object is an event handle signaled in the worker thread >> after the Client has called ThreadAttach. >> - Second object is the thread handle so if the thread thread >> terminates a new attempt is made t

Re: [twsocket] WSocketTS

2006-03-22 Thread Arno Garrels
Fastream Technologies wrote: >>> So do you think this design is not mature? >> >> It is working reliable. Since there may be messages in the queue for >> the windowless client, my only idea was to block the listener thread. >> If there's a smarter/faster way please let us know. > > I do not have

Re: [twsocket] WSocketTS

2006-03-22 Thread Fastream Technologies
- Original Message - From: "Arno Garrels" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Wednesday, March 22, 2006 6:41 PM Subject: Re: [twsocket] WSocketTS > Fastream Technologies wrote: >> My puzzling slightly faded away, not completely. If not, what's the point in waiting w

Re: [twsocket] WSocketTS

2006-03-22 Thread Arno Garrels
Fastream Technologies wrote: > My puzzling slightly faded away, not completely. >>> If not, what's the point in waiting with >>> waitformultiplemessages? >> >> WaitForMultipleOBJECTS, not messages! >> In my opinion the listener thread needs to be blocked while the client >> has no window (until th

Re: [twsocket] WSocketTS

2006-03-22 Thread Fastream Technologies
- Original Message - From: "Arno Garrels" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Wednesday, March 22, 2006 6:16 PM Subject: Re: [twsocket] WSocketTS > Fastream Technologies wrote: > >> Now, does the end of this function (FOnClientAttached()) run in the >> worker >> thread

Re: [twsocket] WSocketTS

2006-03-22 Thread Fastream Technologies
My puzzling slightly faded away, not completely. - Original Message - From: "Arno Garrels" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Wednesday, March 22, 2006 6:16 PM Subject: Re: [twsocket] WSocketTS > Fastream Technologies wrote: > >> Now, does the end of this function (FOn

Re: [twsocket] WSocketTS

2006-03-22 Thread Arno Garrels
Fastream Technologies wrote: > Now, does the end of this function (FOnClientAttached()) run in the worker > thread context? No > If not, what's the point in waiting with > waitformultiplemessages? WaitForMultipleOBJECTS, not messages! In my opinion the listener thread needs to be blocked whil

[twsocket] WSocketTS

2006-03-22 Thread Fastream Technologies
Hello, Assuming this is the official MT implementation for ICS, I am looking at the below code: {* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *} function TWSocketThrdServer.ClientAttachThread( Client: TWSocketThrdClient): TWsClientThread; var WaitRes : Longword;

Re: [twsocket] Server problem (leaking memory)

2006-03-22 Thread Fastream Technologies
So no answer means there is no way to do this? Could this even be impossible?? Regards, SZ - Original Message - From: "Fastream Technologies" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Wednesday, March 22, 2006 2:07 PM Subject: Re: [twsocket] Server problem (leaking memory)

Re: [twsocket] Http - access table or tabular sheet

2006-03-22 Thread Dod
Hello, I also think you should learn more what is a web server, statis and dynamic web pages, server side scripting (PHP/ASP), so you may better understand this technology and know if delpih/ics may be usefull to you. regards. FT> You just need an FTP client to upload your files to your ISP. You

Re: [twsocket] Http - access table or tabular sheet

2006-03-22 Thread Fastream Technologies
You just need an FTP client to upload your files to your ISP. You do not need to run ICS or any other web server or leave your computer open. Your ISP does all of it for you. Regards, SZ - Original Message - From: "Werner" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Wednesday

Re: [twsocket] Server problem (leaking memory)

2006-03-22 Thread Fastream Technologies
Ok I can confirm this is the problem (below). There seems to be other messages for the same client in the queue that are processed before the WM_SYNCED so this spoils everything. SendDocument is called before this function ends!! Any ideas? Thanks, SZ - Original Message - From: "Fast

Re: [twsocket] No download from www.overbyte.be

2006-03-22 Thread Francois Piette
> I can't download anymore from Your WWW when cliking a link. > Eg. 'javascript:top.StartDownload('eng',%20'arch/ics.zip');' > Any idea of why ?? I checked the website. It works from here. So the problem is probably at your computer. Check if you have cookies and javascript enabled in your browse

Re: [twsocket] Http - access table or tabular sheet

2006-03-22 Thread Francois Piette
> I have x webspace with my service provider. > I want to create 1 dynamic page on it. > - can I put an ics Http Server on it? You have to ask your service provider if you are allowed to run an executable and have it use publicly available TCP port (obviously different than the sandradt port 80

Re: [twsocket] Http - access table or tabular sheet

2006-03-22 Thread Francois Piette
> This have nothing to do with ICS, ICS is here to get web page and put > web page, the way your web server produce the document or retrieve it > is not an ICS concern, this is more PHP/ASP. But everything you do with ASP/PHP can be done probably more easily with ICS HTTP server component and som

[twsocket] No download from www.overbyte.be

2006-03-22 Thread Jørgen Bonde
Help I can't download anymore from Your WWW when cliking a link. Eg. 'javascript:top.StartDownload('eng',%20'arch/ics.zip');' Any idea of why ?? Mvh Joergen -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit ou

Re: [twsocket] Http - access table or tabular sheet

2006-03-22 Thread Werner
all is very new to me... I have x webspace with my service provider. I want to create 1 dynamic page on it. - can I put an ics Http Server on it? or do I need to create other stuff first - or do I need to create this Http Server on my computer, but then I need to run it my computer all the time, so

Re: [twsocket] Http - access table or tabular sheet

2006-03-22 Thread Francois Piette
> So if I want to make only one simple modification, let's say one record, I > can do this with http get - modified - then post the page again ? No, it doesn't work like that. You have to build something at server side to handle you dynamic page. What kind of server do you have ? Are you willing

Re: [twsocket] Http - access table or tabular sheet

2006-03-22 Thread Dod
Hello Werner, This have nothing to do with ICS, ICS is here to get web page and put web page, the way your web server produce the document or retrieve it is not an ICS concern, this is more PHP/ASP. Regards. W> Hi Francois W> So if I want to make only one simple modification, let's say one recor

Re: [twsocket] Http - access table or tabular sheet

2006-03-22 Thread Werner
Hi Francois So if I want to make only one simple modification, let's say one record, I can do this with http get - modified - then post the page again ? thx - Oorspronkelijk bericht - Van: "Francois Piette" <[EMAIL PROTECTED]> Aan: "ICS support mailing" Verzonden: woensdag, maart 22, 200

Re: [twsocket] Under what conditions THttpServer would stop?

2006-03-22 Thread Fastream Technologies
No it is not. Please see my lastest post. I think the problem is in ThreadAttach under MT environments. Regards, SZ - Original Message - From: "Francois Piette" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Wednesday, March 22, 2006 11:25 AM Subject: Re: [twsocket] Under what co

Re: [twsocket] Under what conditions THttpServer would stop?

2006-03-22 Thread Francois Piette
Is the listening socket still listening ? Whatr I already had is a bug in a totally different part of my application which closed the listening socket by error ! This happend if by chance you call CloseHandle with an invalid argument which is unfortunately the listening socket handle. -- Contrib

Re: [twsocket] Http - access table or tabular sheet

2006-03-22 Thread Francois Piette
> Yes this data is on a web page, on my server provider. > The thing is, that many users should be able to update and read this data. > So for example, CustNr 2, will update his ordernr to 25, then I need from > time to time to read his actual orderNr. > So I like to create a dynamic site. I'm very

Re: [twsocket] Http - access table or tabular sheet

2006-03-22 Thread Werner
Hi Dod, Yes this data is on a web page, on my server provider. The thing is, that many users should be able to update and read this data. So for example, CustNr 2, will update his ordernr to 25, then I need from time to time to read his actual orderNr. So I like to create a dynamic site. I'm very n

Re: [twsocket] Server problem (leaking memory)

2006-03-22 Thread Fastream Technologies
Ok here is the core of the problem: The waitforsinglemessage solution worked for the single thread for each connection case but since it is blocking, cannot be used for the 32 clients per thread proxy. Here is the problem: This is the worker thread: void __fastcall THTTPThread::processServerThr

Re: [twsocket] Http - access table or tabular sheet

2006-03-22 Thread Dod
Hello Werner, Sorry but your question is not clear, where is this tabbed data located ? if it is on a web page then simply download the page and read the tabs inside, ics will have nothing to do with this data analyzing. regards. W> Hi to all, W> Is it possible to make - access a table or tabul

[twsocket] Http - access table or tabular sheet

2006-03-22 Thread Werner
Hi to all, Is it possible to make - access a table or tabular sheet to access an http site with ics components. Http sheet should have a very simple list, and should hold about 200 records, it is not needed to show this site like a regular http sheet: CurstNr OrderNr ---