Re: [twsocket] Receive function in ClientDataAvailable procedure

2005-09-13 Thread Igor Pokorny
Wilfried,

I thank you very much for your fast and clear answer. 

Regards

Igor


On 9/13/05, Wilfried Mestdagh <[EMAIL PROTECTED]> wrote:
> Hello Igor,
> 
> Receive can return 0 or -1. If so then just exit the event and dont
> care. Yes it is normally closed or error, but in this case the 10035
> TWSocket take care of it. You never have to call LastError because
> TWSocket have Error code in each event.
> 
> ---
> Rgds, Wilfried
> http://www.mestdagh.biz
> 
> Tuesday, September 13, 2005, 13:11, Igor Pokorny wrote:
> 
> > Hello all,
> > Could someone explain what the result -1 from Receive function in
> > ClientDataAvailable procedure means?
> > No data, error or something else ?
> > Reading LastError after having result -1 gives the value 10035.
> > Thanks in advance
> > Igor
> 
> --
> 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


Re: [twsocket] Receive function in ClientDataAvailable procedure

2005-09-13 Thread Wilfried Mestdagh
Hello Igor,

Receive can return 0 or -1. If so then just exit the event and dont
care. Yes it is normally closed or error, but in this case the 10035
TWSocket take care of it. You never have to call LastError because
TWSocket have Error code in each event.

---
Rgds, Wilfried
http://www.mestdagh.biz

Tuesday, September 13, 2005, 13:11, Igor Pokorny wrote:

> Hello all, 
> Could someone explain what the result -1 from Receive function in
> ClientDataAvailable procedure means?
> No data, error or something else ? 
> Reading LastError after having result -1 gives the value 10035. 
> Thanks in advance 
> Igor

-- 
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


Re: [twsocket] Receive function in ClientDataAvailable procedure

2005-09-13 Thread Arno Garrels
Igor Pokorny wrote:
> Hello all,
> Could someone explain what the result -1 from Receive function in
> ClientDataAvailable procedure means?
> No data, error or something else ?
> Reading LastError after having result -1 gives the value 10035.

It means a winsock error, in your case 10035 (Operation would block).

Arno Garrels
-- 
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