[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 --

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,

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

Re: [twsocket] Socket - TimeOut

2005-10-19 Thread Werner
Thank, Thanks, I'll check the receive function An other Q. about TimeOut After connect to the server, I send a string 'SENDDATA' In OnDataAvailable, i check for incoming data, but when no data arives, then I want to close the connection. Now I'm using a separate timer to check this. Is there an

Re: [twsocket] Socket - TimeOut

2005-10-19 Thread Wilfried Mestdagh
Hello Werner, so far I've red that after the connect, onDataAvailable will fired direct, but is this when also when no data comes in? That was the case on NT4 and on W2K, never checked it on XP. But I should nor rely on this. Just send your data in OnSessionConnected and set a timer. When

[twsocket] Do You have the same problem with this url and HttpTst ?

2005-10-19 Thread DZ-Jay
Hello: I just tested that URL with the HttpTst and it seems to work fine: Not using proxy cmd GET /bibliography/Ai/agents.html HTTP/1.0 cmd Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */* cmd Connection: Keep-Alive cmd Accept-Language: en, fr cmd User-Agent: Mozilla/3.0

Re: [twsocket] OT: Open source model

2005-10-19 Thread Arno Garrels
Fastream Technologies wrote: Hello Francois, I wonder how your open-source business model is going? At first ICS is not open source. I mean financially is it satisfying? If I can convince me and my partner, we may consider releasing the source code of our web/ftp server as well

Re: [twsocket] OT: Open source model

2005-10-19 Thread DZ-Jay
Arno Garrels wrote: Code that is published as/in ICS was mostly contributed because the authors would have written it anyway and they decided to give it away as freeware under the license of ICS. The principle is simple, if you use ICS in your applications, you should make your own

Re: [twsocket] AN: Google Translation Interface

2005-10-19 Thread Wilfried Mestdagh
Hello David, Looks very nice :) Works fine in XP, but gives AV's in NT4. Did not tryed on other OS. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Wednesday, October 19, 2005, 19:06, David A. G. wrote: Hello all I made a beautiful

Re: [twsocket] Do You have the same problem with this url and HttpTst ?

2005-10-19 Thread Francois PIETTE
I get the same result as you. And I found why. And of course I fixed it. Here is the fix (in red bold): procedure THttpCli.SendRequest(const Method, Version: String); ... if (FTargetPort = '80') or (FTargetPort = '') then Headers.Add('Host: ' +

Re: [twsocket] Do You have the same problem with this url and HttpTst ?

2005-10-19 Thread Francois PIETTE
I just tested that URL with the HttpTst and it seems to work fine: Well, not here. The problem was that the host header line was malformed. The port is empty but the colon delimiter is there. Here is the fix (in red bold): procedure THttpCli.SendRequest(const Method, Version: String); ...

Re: [twsocket] OT: Open source model

2005-10-19 Thread Francois PIETTE
I wonder how your open-source business model is going? Well, thank you. My freeware (This is slightly different than OpenSource) make me known and I get business because I am known. With the internet, the world is a village. -- [EMAIL PROTECTED] http://www.overbyte.be -- To unsubscribe or

Re: [twsocket] Do You have the same problem with this url and HttpTst ?

2005-10-19 Thread Bruno Mannina
Hi Francois, Well, well, well it's Work fine now :) even my program !!! Thank's a lot Bruno - Original Message - From: Francois PIETTE To: ICS support mailing Sent: Wednesday, October 19, 2005 8:26 PM Subject: Re: [twsocket] Do You have the same problem with this url and

[twsocket] Async http, close or closeAsync?

2005-10-19 Thread Jack
Hello all, I'm using httpcli in async mode. Since I'm using http 1.0, most likely the server will disconnect when it's done sending the data. I just want to be sure so I plan to disconnect in HttpCliRequestDone event handler. Should I use httpcli.Close() or httpcli.CloseAsync()? Thanks. -- Best

[twsocket] Disconnect a client from FTPServer...

2005-10-19 Thread Scott
Hi, This is my first post to the list so I hope I do it right. My question is as follows: I'm trying to code a simple FTPServer using the ICS Demo as a base. However, I want to be able to disconnect a user via the server. I see the FtpServer1.Disconnect() method but I don't know how to use it.