Hi, thanks for all your input.
What i did, i call peekdata to only know how much data is received, and after this i read the data needed by calling the received function. That way, i don't need to use another buffer to store the the temporary data since all my data is not received. regards Jonathan. ----- Original Message ----- From: "Francois PIETTE" <[EMAIL PROTECTED]> To: "ICS support mailing" <twsocket@elists.org> Sent: Wednesday, April 18, 2007 3:44 PM Subject: Re: [twsocket] OnDataAvailable >>> I would like to know if this is normal to have the event >>> OnDataAvailable trigger and get a RcvdCount = 0 ? >> >> 0 length can happen, you must allow for it. > > Be aware that having RcvdCount = 0 is a different issue than having > Receive > returning 0. > >> Also -1 which means an error, which you can get from LastError and >> convert to ASCII with WSocketErrorDesc. > > Same remark here. > > > -- > Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html > -- > [EMAIL PROTECTED] > 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 > -- 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