Francois Piette wrote:
> wsConnected means the result to the connection process is known,
> wheter it is a success or not.
> This is analog to having OnSessionConnected called even if connection
> fails. 

I understand, but it's a little bit strange anyway.

---
Arno Garrels [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html



> 
> Contribute to the SSL Effort. Visit
> http://www.overbyte.be/eng/ssl.html --
> [EMAIL PROTECTED]
> Author of ICS (Internet Component Suite, freeware)
> Author of MidWare (Multi-tier framework, freeware)
> http://www.overbyte.be
> 
> 
> ----- Original Message -----
> From: "Arno Garrels" <[EMAIL PROTECTED]>
> To: "ICS support mailing" <twsocket@elists.org>
> Sent: Friday, October 06, 2006 11:04 AM
> Subject: [twsocket] State = wsConnected in WSocket.SessionConnected
> onErrCode > 0
> 
> 
>> Hello,
>> 
>> When Connect fails WSocket.SessionConnected is triggered with
>> ErrCode > 0, but State is wsConnected.
>> 
>> Is there a special reason why wsConnected is set even though
>> msg.LParamHi is not null?
>> 
>> procedure TCustomWSocket.Do_FD_CONNECT(var msg: TMessage);
>> begin
>>     if FState <> wsConnected then begin
>>         ChangeState(wsConnected);
>>         TriggerSessionConnectedSpecial(msg.LParamHi);
>>         if (msg.LParamHi <> 0) and (FState <> wsClosed) then
>>             Close;
>>     end;
>> end;
>> 
>> Shouldn't this be corrected to something like:
>> 
>> procedure TCustomWSocket.Do_FD_CONNECT(var msg: TMessage);
>> begin
>>     if FState <> wsConnected then begin
>>         if msg.LParamHi = 0 then
>>              ChangeState(wsConnected);
>>         TriggerSessionConnectedSpecial(msg.LParamHi);
>>         if (msg.LParamHi <> 0) and (FState <> wsClosed) then
>>             Close;
>>     end;
>> end;
>> 
>> 
>> ---
>> Arno Garrels [TeamICS]
>> http://www.overbyte.be/eng/overbyte/teamics.html
>> --
>> 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
-- 
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

Reply via email to