Re: [twsocket] OnDataSent

2005-03-14 Thread Wilfried Mestdagh
Hello Jack, Not exacly. OnDataSent is fired when TWSocket has empty his buffer. But you are right about when it is emptied between the calls, but of course only when messages are processed. --- Rgds, Wilfried http://www.mestdagh.biz Tuesday, March 15, 2005, 00:11, Jack wrote: > Hello Francois a

[twsocket] OnDataSent

2005-03-14 Thread Jack
Hello Francois and all, I have a question about the OnDataSent event. When is OnDataSent is fired? Is it fired when the data buffer of the TCP stack is emptied? If so, after calling the Send or SendStr function a few times, I suppose I could get OnDataSent event one or more times depending on whet

[twsocket] Proposed change in FTP client component

2005-03-14 Thread Francois PIETTE
Rüdiger Leilich (leilich at steuersoft dot de) submited a change in FTP client component. His change is related to the use of a ConnectionType := ftpProxy when the proxy requires username/password. He added two properties for ProxyUserCode and ProxyPassword and adapted the code to use it. He also c

[twsocket] FPC status

2005-03-14 Thread Marco van de Voort
Hello, as probably noticed in Francois comments in new release announcements, there has been some movement on FPC compability in ICS recently. The con* demoes of the ICS distribution now compile unmodified on a standard FPC 1.9.8 - win32 install. Some GUI success was also reported, but that r

Re: [twsocket] CLOSE_WAIT

2005-03-14 Thread Patrick DUMOLEYN
Sorry, I forgot that all messages should be in english. I used ICS to develop a simple server module. The client opens a session, sends a request, waits for the reply and finally close the session. The server accepts the session open request, reads the client's request, replies to it, waits fo

Re: [twsocket] CLOSE_WAIT

2005-03-14 Thread Wilfried Mestdagh
Hello Patrick, Please talk english because this mailing list is international and otherwise most people will not understeand you.. As for you question, yes it is normal an application that close the connection windows will hold the socket for a few minutes in WAIT state. --- Rgds, Wilfried http:

Re: [twsocket] How to get the size of the remote file?

2005-03-14 Thread Jilani Khaldi
After the SIZE command, you have the result into SizeResult property. Where to add "FtpClient1.SizeAsync" method to the FTPAsy1 example to get the file size before downloading it? In other words, where putting: FtpClient1.SizeAsync; Label9.Caption := IntToStr(FtpClient1.SizeResult); Thanks! j

[twsocket] CLOSE_WAIT

2005-03-14 Thread Patrick DUMOLEYN
Bonjour. J'ai utilisé ICS pour développer un petit module serveur. Le client ouvre une session, envoie une requête, attend la réponse et ferme la connexion. Le serveur accepte la demande d'ouverture de session, lit la requête, y répond, attend que la connexion soit fermée par le client et la f

Re: [twsocket] How to get the size of the remote file?

2005-03-14 Thread Francois Piette
> >>usisng FtpCli component, how to get the size of the remote file before > >>the download? > >Use the SIZE or MLST methods. > They both are boolean values. Do I have to parse the answer of the > server to find the file size? I ask if there is an easier way. After the SIZE command, you have the

Re: [twsocket] How to get the size of the remote file?

2005-03-14 Thread Jilani Khaldi
Angus Robertson - Magenta Systems Ltd wrote: usisng FtpCli component, how to get the size of the remote file before the download? Use the SIZE or MLST methods. They both are boolean values. Do I have to parse the answer of the server to find the file size? I ask if there is an easier way.