> Does twSocket has a method to use streams
> I want to recieve some data in a TStringStream
> I wonder if I can read all data in one piece by using streams?

It is not the component that read data, it is your application that does it 
from the OnDataAvailable
event handler.

> Now, I'm using CliSocket.ReceiveStr to recieve data and put this in a buffer 
> until all data is

That is OK but if you want speed, avoid using longstring and therefore 
ReceiveStr. Use a simple
array of char for your buffer or a dynamically allocated buffer that you 
allocate only once. Use a
size adapted to your need. If you don't know what size to use, use 2KB as a 
starting point.

Contribute to the SSL Effort. Visit
Author of ICS (Internet Component Suite, freeware)
Author of MidWare (Multi-tier framework, freeware)

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

Reply via email to