Re: [twsocket] Socket - streams

2005-10-19 Thread Francois Piette
> 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 CliSo

Re: [twsocket] Socket - streams

2005-10-19 Thread Wilfried Mestdagh
Hello Werner, If you data has a terminating character then you can use lineMode. Then OnDataAvailable will only fire when thes character(s) are received and you have all your data at ones. If not it will arrive in many chunck, or datapackets can even be concatenatied. Thats nature of TCP. > Now,

[twsocket] Socket - streams

2005-10-19 Thread Werner
Hi, Does twSocket has a method to use streams I want to recieve some data in a TStringStream Now, I'm using CliSocket.ReceiveStr to recieve data and put this in a buffer until all data is read I wonder if I can read all data in one piece by using streams? Thanks for any suggestions Werner -- T