Re: [twsocket] ICSv6 IIS long dir problem

2006-06-05 Thread Fastream Technologies
I also got the same problem with THttpServer--perhaps only that component was faulty as the last case I was testing there was a THttpConnection involved as well. I POST to the component fine but the return/download value is always the first packet. Regards, SZ - Original Message - Fr

Re: [twsocket] ICSv6 IIS long dir problem

2006-06-05 Thread Francois PIETTE
>> I tryed a long (2356 entries) directory with IIS. It is indeed sent as >> chunked. It works OK with ICS-V6. What is your problem. > In my case there is also a THttpConnection sharing the same handle in the > thread. Could you try with something similar? Prepare a small test program, preferably

Re: [twsocket] Multicasting

2006-06-05 Thread Angus Robertson - Magenta Systems Ltd
> As far as I know, routers ans witches must be aware of > multicasting. Maybe SonicWall isn't. Thanks, a little searching suggests multicasting is supported by the Sonicall 'enhanced' OS, which is only supported on newer models than those we have, and costs a lot more. I only need to 'broa

Re: [twsocket] Receiving UDP

2006-06-05 Thread Wilfried Mestdagh
Hello David, As far as I know you cannot. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Monday, June 5, 2006, 19:20, David A. G. wrote: > Hello all, I have a little question about UDP. > Using TWSocket, how can I know if the received data

[twsocket] Receiving UDP

2006-06-05 Thread David A. G.
Hello all, I have a little question about UDP. Using TWSocket, how can I know if the received data was sent to the Broadcast address or directly to my IP address? thanks, David -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listin

Re: [twsocket] ICSv6 IIS long dir problem

2006-06-05 Thread Fastream Technologies
In my case there is also a THttpConnection sharing the same handle in the thread. Could you try with something similar? Regards, SZ - Original Message - From: "Francois PIETTE" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Monday, June 05, 2006 6:26 PM Subject: Re: [twsocket] IC

Re: [twsocket] Multicasting

2006-06-05 Thread Francois PIETTE
As far as I know, routers ans witches must be aware of multicasting. Maybe SonicWall isn't. Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: "Angus Robertson - Magenta Systems Ltd" <[EMAIL PRO

Re: [twsocket] ICSv6 IIS long dir problem

2006-06-05 Thread Francois PIETTE
> Do you have IIS there? Could you try the Httpcli with a long Folder > listing? > When long listings are used, it uses Chunked encoding. I tryed a long (2356 entries) directory with IIS. It is indeed sent as chunked. It works OK with ICS-V6. What is your problem. -- Contribute to the SSL Effor

[twsocket] Multicasting

2006-06-05 Thread Angus Robertson - Magenta Systems Ltd
I've got two applications trying to broadcast UDP multicasts, on a private WAN/LAN. One is broadcasting on LANs, with a MultiCastIpTTL of 1 and is being received fine by all other PCs running on the same subnet. The second is trying to broadcast across a WAN and different subnet, involving

Re: [twsocket] ICSv6 Thread Attach/Detach problem

2006-06-05 Thread Francois PIETTE
> Arno had already suggested that and I had already done that before your > message. You have to apply the other changes I made. Arno's fix is not enough. > My Thttpcli has no new messages defined so I thought I do not need > to override the methods. OK. -- [EMAIL PROTECTED] http://www.overb

Re: [twsocket] ICSv6 Thread Attach/Detach problem

2006-06-05 Thread Fastream Technologies
Hello, Arno had already suggested that and I had already done that before your message. My Thttpcli has no new messages defined so I thought I do not need to override the methods. Do you have IIS there? Could you try the Httpcli with a long Folder listing? When long listings are used, it uses

Re: [twsocket] Program to thread

2006-06-05 Thread Francois PIETTE
>> Of course. Be sure to create it from the thread's Execute method. > > Just being curious : why does is have to be created in > the thread's execute procedure ? As you know, ICS component use hidden window to receive notification messages from winsock and to use internal messages. By Windows de

Re: [twsocket] ICSv6 Thread Attach/Detach problem

2006-06-05 Thread Francois PIETTE
Messages IDs are recreated when calling ThreadAttach. But if you created your derived component, maybe you did not it correctly. All messages ID are now variables, are allocated by AllocateMsgHandlers and freed by FreeMsgHandlers. You _must_ override AllocateMsgHandlers, FreeMsgHandlers and MsgH

Re: [twsocket] Program to thread

2006-06-05 Thread Fastream Technologies
Because the otherwise it would execute in the main thread context. Or you can use ThreadAttach which would be a waste of CPU cycles... Regards, SZ - Original Message - From: "Paul" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Monday, June 05, 2006 3:32 PM Subject: Re: [twsocket

Re: [twsocket] ICSv6 Thread Attach/Detach problem

2006-06-05 Thread Fastream Technologies
Hello, I have a strange problem with THttpCli GET in chunked transfer encoding. I am testing against a long IIS folder listing and it repeats the first packet always and cuts the rest!!! If this is not a pure Httpprot problem, then could the problem be the thread attach/detach again? The clien

Re: [twsocket] Program to thread

2006-06-05 Thread Paul
>> - HttpCli.create(nil) > Of course. Be sure to create it from the thread's Execute method. Just being curious : why does is have to be created in the thread's execute procedure ? Paul - Original Message - From: "Francois PIETTE" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent:

Re: [twsocket] ICSv6 Thread Attach/Detach problem

2006-06-05 Thread Francois PIETTE
Still one problem. Arno fixed it (He sent a private message to me). Move the line FWndHandler := nil; // THIS ONE ADDED from ThreadDetach to DeallocateHWnd so that the later looks like: procedure TIcsWndControl.DeallocateHWnd; begin if FHandle = 0 then Exit;

Re: [twsocket] ICSv6 Thread Attach/Detach problem

2006-06-05 Thread Francois PIETTE
Problem fixed ! In OverbyteIcsHttpProt.pas, add: {$IFDEF COMPILER2_UP} procedure THttpCli.ThreadAttach; begin inherited ThreadAttach; FCtrlSocket.ThreadAttach; end; procedure THttpCli.ThreadDetach; begin inherited ThreadDetach; FCtrlSocket.ThreadDetach; end; {$ENDIF} Don't forge

Re: [twsocket] v6 question about messages

2006-06-05 Thread Fastream Technologies
Yes, it turned out to be easy. Thank you very much! SZ - Original Message - From: "Arno Garrels" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Monday, June 05, 2006 1:20 PM Subject: Re: [twsocket] v6 question about messages : Fastream Technologies wrote: : > Hello, : > : > I am

Re: [twsocket] ICSv6 Thread Attach/Detach problem

2006-06-05 Thread Francois PIETTE
Yes, I found the problem. More complex to solve than what I thought first. -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: "Fastream Technologies" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Monday, June 05, 2006 11:37 AM Subject: Re: [twsocket] ICSv6 Thre

Re: [twsocket] v6 question about messages

2006-06-05 Thread Arno Garrels
Fastream Technologies wrote: > Hello, > > I am deriving from THttpConnection and overriding wndproc so that I > can define new messages for my use with WM_USER + XXX. Is this a > problem for v6 messaging style? Define custom messages of type UINT and override AllocateMsgHandlers, FreeMsgHandlers

[twsocket] v6 question about messages

2006-06-05 Thread Fastream Technologies
Hello, I am deriving from THttpConnection and overriding wndproc so that I can define new messages for my use with WM_USER + XXX. Is this a problem for v6 messaging style? Regards, Subzero -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/

Re: [twsocket] ICSv6 Thread Attach/Detach problem

2006-06-05 Thread Fastream Technologies
Francois, Have you been able to reproduce the problem there? Regards, SZ - Original Message - From: "Fastream Technologies" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Sunday, June 04, 2006 6:24 PM Subject: Re: [twsocket] ICSv6 Thread Attach/Detach problem > AFAIU, instead o

Re: [twsocket] Program to thread

2006-06-05 Thread Arno Garrels
Arno Garrels wrote: > Paul wrote: >> Hi Arno >> >>> not required, you can also use PostThreadMessage(). >> Can I trap my own messages within the message pump here ? > > No problem i.e.: Also make sure thread's message queue is initialized before PostThreadMessage(). First line in Execute could b

Re: [twsocket] Program to thread

2006-06-05 Thread Arno Garrels
Paul wrote: > Hi Arno > >> not required, you can also use PostThreadMessage(). > Can I trap my own messages within the message pump here ? No problem i.e.: while GetMessage(Msg, 0, 0, 0) do begin if Msg.message = WM_USER + 1 then TWSocket(Msg.WParam).ThreadAttach else if Msg.mes

Re: [twsocket] Program to thread

2006-06-05 Thread Paul
Hi Arno > not required, you can also use PostThreadMessage(). Can I trap my own messages within the message pump here ? > Think fully event-driven ;-) It' the only I can ;-) Paul -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/l

Re: [twsocket] Program to thread

2006-06-05 Thread Arno Garrels
Paul wrote: > What is the correct way to convert an existing program with 1 HttpCli > in async mode to a thread? > > - HttpCli.create(nil) Either create it in thread's Execute procedure or create it in another thread, call ThreadDetach, and in thread's Execute call ThreadAttach. > - HttpCli.Mult

Re: [twsocket] Program to thread

2006-06-05 Thread Francois PIETTE
> What is the correct way to convert an existing program with 1 HttpCli in > async mode to a thread? > > - HttpCli.create(nil) Of course. Be sure to create it from the thread's Execute method. > - HttpCli.Multithreaded:= true OK. > - place a message pump in the thread's execute procedure. OK

Re: [twsocket] Program to thread

2006-06-05 Thread Paul
Thanks for the fast response. However, I need all the items listed, including the hidden window. In the OnRequestdone event, I sometimes need to restart the the same operation which I can't do from within the onRequestDone event. I just wanted to know if there was something else I should do Pau

Re: [twsocket] Program to thread

2006-06-05 Thread Fastream Technologies
- Original Message - From: "Paul" <[EMAIL PROTECTED]> To: Sent: Monday, June 05, 2006 11:51 AM Subject: [twsocket] Program to thread > What is the correct way to convert an existing program with 1 HttpCli in > async mode to a thread? > > - HttpCli.create(nil) Necessary to be done in

[twsocket] Program to thread

2006-06-05 Thread Paul
What is the correct way to convert an existing program with 1 HttpCli in async mode to a thread? - HttpCli.create(nil) - HttpCli.Multithreaded:= true - place a message pump in the thread's execute procedure. - create a hidden window to post message to Something else to do ? Paul -- To unsubs