[twsocket] Client identification

2007-04-13 Thread Engi
Hi, In my program, a TWSocketServer in thread 'A' receives commands (queries) from clients. The thread 'A' post this commands to another thread 'B' which execute them. Later, thread A receives an asynchronous answer from thread 'B'. How can the thread A could transmits this answer to the good

Re: [twsocket] Listen exception

2007-04-13 Thread Arno Garrels
Engi wrote: Since I put the code to create an instance of my TWSocketServer and the Listen() method in the thread's constructor, all is fine ! In this case the events are not running in worker thread context! Have you tried to initialize worker thread's message queue before the calling

Re: [twsocket] Client identification

2007-04-13 Thread Engi
OK, thanks. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Arno Garrels Sent: Friday, April 13, 2007 11:20 AM To: ICS support mailing Subject: Re: [twsocket] Client identification Engi wrote: Hi, In my program, a TWSocketServer in

Re: [twsocket] Listen exception

2007-04-13 Thread Engi
Yes, I have tried to initialize worker thread's message queue before the calling listen(), but no effect ! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Arno Garrels Sent: Friday, April 13, 2007 11:01 AM To: ICS support mailing Subject: Re:

[twsocket] Client close exception and connection doubt

2007-04-13 Thread Éric Fleming Bonilha
Hello all, I want to discuss an architectural issue here I´m debugging an application of mine and yesterday it has stopped working and I got the following EurekaLog call stak information |00507C4D|Servidor.exe|OverByteICSWSocket.pas|TCustomWSocket |RaiseException

Re: [twsocket] Client close exception and connection doubt

2007-04-13 Thread Éric Fleming Bonilha
Éric, Since ICS works asynchronous a reconnect-timer should be started from event handler OnSessionClosed, is that the case? Also the best place to destroy the object is from OnSessionClosed as well. But the OnSessionClosed event will be triggered if I try to connect to an inacessible

[twsocket] Bug in HTTPProt.pas (URGENT)

2007-04-13 Thread Fastream Technologies
Hello, Please use the ICS http prot demo to locate to an Apache with 401 protection with chunked mode: Not using proxy cmd GET / HTTP/1.1 cmd Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */* cmd Connection: Keep-Alive cmd Accept-Language: en, fr cmd User-Agent: Mozilla/3.0

Re: [twsocket] Client close exception and connection doubt

2007-04-13 Thread Arno Garrels
Éric Fleming Bonilha wrote: Éric, Since ICS works asynchronous a reconnect-timer should be started from event handler OnSessionClosed, is that the case? Also the best place to destroy the object is from OnSessionClosed as well. But the OnSessionClosed event will be triggered if I try to

Re: [twsocket] Client close exception and connection doubt

2007-04-13 Thread Wilfried Mestdagh
Hello Éric, Actually I thing that this exception was raised because of the architecture of my software and I need an opinion about that. What is exacly the exception message ? when I have some hosts down. My app has a Timeout parameter (Default 4 seconds) when if it doesn´t receives video

Re: [twsocket] Client close exception and connection doubt

2007-04-13 Thread Éric Fleming Bonilha
You have to call Abort once Connect has been called and OnSessionClosed has not been triggered yet to abort the session. Then in OnSessionClosed start the timer or post a custom message if you want to reconnect at once. Ok, now I undestood, I will try to implement on that way Thank you Arno!

Re: [twsocket] Client close exception and connection doubt

2007-04-13 Thread Éric Fleming Bonilha
Hello Wilfried, What is exacly the exception message ? The exception that was raised was Socket operation on non-socket (#10038 in Disconnect (closesocket)). and it was raised on this: |00507C4D|Servidor.exe|OverByteICSWSocket.pas|TCustomWSocket |RaiseException

Re: [twsocket] Listen exception

2007-04-13 Thread Arno Garrels
Engi wrote: Yes, I have tried to initialize worker thread's message queue before the calling listen(), but no effect ! I'm sorry, this was my last idea, especially _if you added the changes I posted in one of my previous messages. I never saw a socket error in WSAASyncSelect in one of my

Re: [twsocket] Listen exception

2007-04-13 Thread Engi
Thank you very much for your help. Perhaps a bad construction of my source code. I'll try to rewrite this later. Bye, Engi -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Arno Garrels Sent: Friday, April 13, 2007 7:27 PM To: ICS support mailing