Jack wrote: > I know I know :) I was trying to ask if I can get that info > without calling Receive() and ReceiveStr() :)
var Count : Integer; WSocket_ioctlsocket(WSocket1.HSocket, FIONREAD, Count); Note that calling the function will trigger OnDataAvailable if there is data available. --- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html > > -- > Best regards, > Jack > > Tuesday, October 24, 2006, 12:37:37 AM, you wrote: > >> Receive() and ReceiveStr() that you would normally be calling in >> OnDataAvailable returns the number of bytes. > >> Best Regards, > >> SZ > >> On 10/24/06, Jack <[EMAIL PROTECTED]> wrote: >>> Hi all, >>> >>> Is there a way to know how many bytes of data is available >>> in the OnDataAvailable handler? >>> >>> -- >>> Best regards, >>> Jack >>> >>> -- >>> 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 >>> > > >> -- >> Fastream Technologies >> Software IQ: Innovation & Quality >> www.fastream.com | Email: [EMAIL PROTECTED] | Tel: +90-312-223- >> 2830 -- 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