> is there a way to know how much data is received ? The only reliable way is to read data until no more is available (The component is asynchronous and will /not/ block on the Receive call. It will simply returns the number of available bytes or -1 if no data available (0 is returned for a TCP connection when remote has close the connection).
> i will try to put thoses RcvBuf on both side to see if it work.Beacuse > when > i call the Received function, it always return 1460. even if i put a count > larger than that. You have to set BufSize at least equal to the largest datagram you handle. btw: Please trim your replies to get only the relevant part. -- 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