Hi
I use this component to send stream with multiple data. sometimes the stream not came immediate so you must wait for data to available to read.
this is what I use in OnDataAvailable procedure:
if AvailableToRead >= 4 then
Socket.Read(iSize,4);
if AvailableToRead >= iSize then
Socket.Read(Buffer,iSize);
sometimes AvailableToRead not fulfill iSize so create a tag...
2009-05-12 07:26:39 UTC in Fundamentals Code Library