Re: [twsocket] FTPclient Error 426
Maria wrote: In the program before we call DirectoryAsync we check to see if the FTPClient is connected. If it is we call abort then quit. Abort followed by Quit is nonsens. Method Abort aborts the connection, command Quit however requires a connection in order to send the Quit-command to the server. Arno -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] FTPclient Error 426
When I copy the exe to another computer Window's XP every FTP server (8 different servers) we connect to gives an ErrCode = 426 with a message Operation Aborted. When FTP fails to run on a specific computer, it's nearly always configuration of that computer, usually a firewall or router stopping it working. Sometimes changing to Passive mode can help. Angus -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] FTPclient Error 426
Hello Angus, I figured out the problem. In the program before we call DirectoryAsync we check to see if the FTPClient is connected. If it is we call abort then quit. It seems the abort was not working or it was the one producing the 426 error. All we did was take out the abort and it disconnects and calls DirectoryAsync just fine. I really like the component. One question is there more detailed help then the one online. Thanks for all your help. Maria Rothweiler Makki ma...@softstuf.com US Domestic: 800-818-3463 International: 215-922-6880 Cell: 609-338-7736 - Original Message - From: Angus Robertson - Magenta Systems Ltd an...@magsys.co.uk To: twsocket@elists.org Sent: Wednesday, September 19, 2012 9:09 AM Subject: Re: [twsocket] FTPclient Error 426 When I copy the exe to another computer Window's XP every FTP server (8 different servers) we connect to gives an ErrCode = 426 with a message Operation Aborted. When FTP fails to run on a specific computer, it's nearly always configuration of that computer, usually a firewall or router stopping it working. Sometimes changing to Passive mode can help. Angus -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] FTPclient Error 426
I really like the component. One question is there more detailed help then the one online. Sorry, it has always been hard to find volunteers to document the ICS library, and in particular keep it updated for the constant changes we make. The developers all contribute their efforts free, and there is only so much time we can spend. As I said earlier today, you can look at the code in my high level TMagFtp component from: http://www.magsys.co.uk/delphi/magxfer.asp which makes FTP very easy to use, and is extensively tested over many years. Angus -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
[twsocket] FTPclient Error 426
I just registered my email address. Below is the question I posted earlier. Hello Everyone, I have fully implemented the FTPClient on my development station and we can connect and poll files from 8 different FTP servers successfully. When I copy the exe to another computer Window's XP every FTP server (8 different servers) we connect to gives an ErrCode = 426 with a message Operation Aborted. Am I missing a file. Any help would be greatly appreciated. Thank you. Maria Rothweiler Makki ma...@softstuf.com US Domestic: 800-818-3463 International: 215-922-6880 Cell: 609-338-7736 -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
[twsocket] FTPClient Localfilename
Hello, How I can download a file in memory instead on disk using the command GET ? Tks in advance Robert -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] FTPClient Localfilename
How I can download a file in memory instead on disk using the command GET ? Use a TMemoryStream instance and assign it to LocalStream property -- francois.pie...@overbyte.be The author of the freeware multi-tier middleware MidWare The author of the freeware Internet Component Suite (ICS) http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] FTPClient Put problem
Hello, I think increasing the buffer size to 16kB would solve the issue. Regards, SZ On 2/27/08, Fias Norbert István [EMAIL PROTECTED] wrote: Honestly I did not find the answer for my following question int he archieves, buti t can be I missed something. I have the following problem In case of upload with FTPClient the upload is slow. It seems that the client does not send enough fast the TCP segments. I mean it is waiting for the previous ACK. The receive window size ont he servers ide is big enough. No bandwidth limit int he client. Is this problem related to winsock, or can I do anything againts? Can I increase the send buffer size of the data socket? I do not experience the problem with Indy FTP client / same machine, same connection, same server. Thanks in advance, Norbert Magyar Telekom Távközlési Nyilvánosan Működő Részvénytársaság Székhely: 1013 Budapest, Krisztina krt. 55. Cégjegyzékszám: bejegyezve a Fővárosi Bíróság mint Cégbíróságon Cg. 01-10-041928 szám alatt Magyar Telekom Telecommunications Public Limited Company Registered office: H-1013 Budapest, Krisztina krt. 55. Commercial register: The Company was registered on number 01-10-041928 by the Municipal Court as Court of Registration -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
[twsocket] FTPClient Put problem
Honestly I did not find the answer for my following question int he archieves, buti t can be I missed something. I have the following problem In case of upload with FTPClient the upload is slow. It seems that the client does not send enough fast the TCP segments. I mean it is waiting for the previous ACK. The receive window size ont he servers ide is big enough. No bandwidth limit int he client. Is this problem related to winsock, or can I do anything againts? Can I increase the send buffer size of the data socket? I do not experience the problem with Indy FTP client / same machine, same connection, same server. Thanks in advance, Norbert Magyar Telekom Távközlési Nyilvánosan Működő Részvénytársaság Székhely: 1013 Budapest, Krisztina krt. 55. Cégjegyzékszám: bejegyezve a Fővárosi Bíróság mint Cégbíróságon Cg. 01-10-041928 szám alatt Magyar Telekom Telecommunications Public Limited Company Registered office: H-1013 Budapest, Krisztina krt. 55. Commercial register: The Company was registered on number 01-10-041928 by the Municipal Court as Court of Registration -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] FTPClient Put problem
I once tested uploading a 2 GB file at 44 Mbits/s in a 100 Mbit/s LAN. Write ahead cache was disabled at the Server's HDD and the the disk seemed rather busy, the HDD was probably the bottleneck that avoided higher speeds. Make sure you do not have any anti-virus software or a personal Firewall running, customers frequently reported that upload speed increased heavily when they killed their background protection. -- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html Fias Norbert István wrote: Honestly I did not find the answer for my following question int he archieves, buti t can be I missed something. I have the following problem In case of upload with FTPClient the upload is slow. It seems that the client does not send enough fast the TCP segments. I mean it is waiting for the previous ACK. The receive window size ont he servers ide is big enough. No bandwidth limit int he client. Is this problem related to winsock, or can I do anything againts? Can I increase the send buffer size of the data socket? I do not experience the problem with Indy FTP client / same machine, same connection, same server. Thanks in advance, Norbert Magyar Telekom Távközlési Nyilvánosan Működő Részvénytársaság Székhely: 1013 Budapest, Krisztina krt. 55. Cégjegyzékszám: bejegyezve a Fővárosi Bíróság mint Cégbíróságon Cg. 01-10-041928 szám alatt Magyar Telekom Telecommunications Public Limited Company Registered office: H-1013 Budapest, Krisztina krt. 55. Commercial register: The Company was registered on number 01-10-041928 by the Municipal Court as Court of Registration -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] FTPClient Put problem
No, there is no FW. As I said with a different component on the same PC using same connection and same server I do not experience the problem. The problem is that Indy sends a large amount TCP segments as the received window increasing and as no drop occured while ICS FTP client does not increase the number of sent segments, so the unacknowledged amount of bytes is not increasing. I am using mobile network - HSDPA - RTT is much higher than in a LAN environment. That's why I thought that if I increase the send buffer that could help. I tried the following just for test: In procedure TCustomFtpCli.DataSocketPutSessionAvailable //original lines OptLen := SizeOf(SndBufSize); if WSocket_getsockopt(FDataSocket.HSocket, SOL_SOCKET, SO_SNDBUF, @SndBufSize, OptLen) = SOCKET_ERROR then begin HandleError('winsock.getsockopt(SO_SNDBUF) failed'); Exit; end; //original ends //added these lines msg := Format('Send buffer Size %d', [SndBufSize]); if Assigned(FOnDisplay) then FOnDisplay(self, msg); SndBufSize := 8192 * 5; if (SetSockOpt(FDataSocket.HSocket, SOL_SOCKET, SO_SNDBUF, @SndBufSize, optlen) NO_ERROR) then begin HandleError('winsock.getsockopt(SO_SNDBUF) failed'); Exit; end; if WSocket_getsockopt(FDataSocket.HSocket, SOL_SOCKET, SO_SNDBUF, @SndBufSize, OptLen) = SOCKET_ERROR then begin HandleError('winsock.getsockopt(SO_SNDBUF) failed'); Exit; end; msg := Format('Send buffer Size %d', [SndBufSize]); //addition ends I increased the send buffer to 40k. Of course it works only during active connections. it does not help. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Arno Garrels Sent: Wednesday, February 27, 2008 12:16 PM To: ICS support mailing Subject: Re: [twsocket] FTPClient Put problem I once tested uploading a 2 GB file at 44 Mbits/s in a 100 Mbit/s LAN. Write ahead cache was disabled at the Server's HDD and the the disk seemed rather busy, the HDD was probably the bottleneck that avoided higher speeds. Make sure you do not have any anti-virus software or a personal Firewall running, customers frequently reported that upload speed increased heavily when they killed their background protection. -- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html Fias Norbert István wrote: Honestly I did not find the answer for my following question int he archieves, buti t can be I missed something. I have the following problem In case of upload with FTPClient the upload is slow. It seems that the client does not send enough fast the TCP segments. I mean it is waiting for the previous ACK. The receive window size ont he servers ide is big enough. No bandwidth limit int he client. Is this problem related to winsock, or can I do anything againts? Can I increase the send buffer size of the data socket? I do not experience the problem with Indy FTP client / same machine, same connection, same server. Thanks in advance, Norbert Magyar Telekom Távközlési Nyilvánosan Működő Részvénytársaság Székhely: 1013 Budapest, Krisztina krt. 55. Cégjegyzékszám: bejegyezve a Fővárosi Bíróság mint Cégbíróságon Cg. 01-10-041928 szám alatt Magyar Telekom Telecommunications Public Limited Company Registered office: H-1013 Budapest, Krisztina krt. 55. Commercial register: The Company was registered on number 01-10-041928 by the Municipal Court as Court of Registration -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be Magyar Telekom Távközlési Nyilvánosan Működő Részvénytársaság Székhely: 1013 Budapest, Krisztina krt. 55. Cégjegyzékszám: bejegyezve a Fővárosi Bíróság mint Cégbíróságon Cg. 01-10-041928 szám alatt Magyar Telekom Telecommunications Public Limited Company Registered office: H-1013 Budapest, Krisztina krt. 55. Commercial register: The Company was registered on number 01-10-041928 by the Municipal Court as Court of Registration -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] FTPClient Put problem
I increased the send buffer to 40k. Of course it works only during active connections. it does not help. Have you tried to increase BLOCK_SIZE of the DataSocket and BufSize (in TCustomWSocket.Create) of TWsocket's internal send buffer? They both are set to 1460 by default . Means a file is read in chunks of BLOCK_SIZE and BufSize is the maximum amout of data being sent in a single call to socket send(). I think they should be set to a multiple of the optimal MTU value - 28 (protocol data), and lower than the socket send buffer size (default = 4096). The default MTU value of 1500 is often to high in most environments, I use MTU 1492, however wireless may require even a lower value. No, there is no FW. As I said with a different component on the same PC using same connection and same server I do not experience the problem. I don't know how the INDY components work, however they will most likely send the files differently, and they use blocking winsock API which may require different parameters? -- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html Fias Norbert István wrote: No, there is no FW. As I said with a different component on the same PC using same connection and same server I do not experience the problem. The problem is that Indy sends a large amount TCP segments as the received window increasing and as no drop occured while ICS FTP client does not increase the number of sent segments, so the unacknowledged amount of bytes is not increasing. I am using mobile network - HSDPA - RTT is much higher than in a LAN environment. That's why I thought that if I increase the send buffer that could help. I tried the following just for test: In procedure TCustomFtpCli.DataSocketPutSessionAvailable //original lines OptLen := SizeOf(SndBufSize); if WSocket_getsockopt(FDataSocket.HSocket, SOL_SOCKET, SO_SNDBUF, @SndBufSize, OptLen) = SOCKET_ERROR then begin HandleError('winsock.getsockopt(SO_SNDBUF) failed'); Exit; end; //original ends //added these lines msg := Format('Send buffer Size %d', [SndBufSize]); if Assigned(FOnDisplay) then FOnDisplay(self, msg); SndBufSize := 8192 * 5; if (SetSockOpt(FDataSocket.HSocket, SOL_SOCKET, SO_SNDBUF, @SndBufSize, optlen) NO_ERROR) then begin HandleError('winsock.getsockopt(SO_SNDBUF) failed'); Exit; end; if WSocket_getsockopt(FDataSocket.HSocket, SOL_SOCKET, SO_SNDBUF, @SndBufSize, OptLen) = SOCKET_ERROR then begin HandleError('winsock.getsockopt(SO_SNDBUF) failed'); Exit; end; msg := Format('Send buffer Size %d', [SndBufSize]); //addition ends I increased the send buffer to 40k. Of course it works only during active connections. it does not help. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Arno Garrels Sent: Wednesday, February 27, 2008 12:16 PM To: ICS support mailing Subject: Re: [twsocket] FTPClient Put problem I once tested uploading a 2 GB file at 44 Mbits/s in a 100 Mbit/s LAN. Write ahead cache was disabled at the Server's HDD and the the disk seemed rather busy, the HDD was probably the bottleneck that avoided higher speeds. Make sure you do not have any anti-virus software or a personal Firewall running, customers frequently reported that upload speed increased heavily when they killed their background protection. -- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html Fias Norbert István wrote: Honestly I did not find the answer for my following question int he archieves, buti t can be I missed something. I have the following problem In case of upload with FTPClient the upload is slow. It seems that the client does not send enough fast the TCP segments. I mean it is waiting for the previous ACK. The receive window size ont he servers ide is big enough. No bandwidth limit int he client. Is this problem related to winsock, or can I do anything againts? Can I increase the send buffer size of the data socket? I do not experience the problem with Indy FTP client / same machine, same connection, same server. Thanks in advance, Norbert Magyar Telekom Távközlési Nyilvánosan Működő Részvénytársaság Székhely: 1013 Budapest, Krisztina krt. 55. Cégjegyzékszám: bejegyezve a Fővárosi Bíróság mint Cégbíróságon Cg. 01-10-041928 szám alatt Magyar Telekom Telecommunications Public Limited Company Registered office: H-1013 Budapest, Krisztina krt. 55. Commercial register: The Company was registered on number 01-10-041928 by the Municipal Court as Court of Registration -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo
Re: [twsocket] FTPClient Put problem
Fias Norbert István wrote: The problem is that Indy sends a large amount TCP segments as the received window increasing and as no drop occured while ICS FTP client does not increase the number of sent segments, so the unacknowledged amount of bytes is not increasing. I have experienced similar issues when comparing ICS and Indy components. The problem decreased when setting the BufSize property of tWSocket to values between 256k and 1M. Maybe the FTP client of ICS is can be changed to use a larger BufSize values by default (as Indy does, I suppose). /Tobias -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] FTPClient Put problem
In case of upload with FTPClient the upload is slow. Pay attention to progress bar or similar GUI gadget. If not programmed correctly, they could slow down transfer a lot. Also, try running the FTP component in a worker thread, maybe with a priority set to something higher than the main trhread. Having a separate thread make the GUI not interfere with the transfer. If you code update the GUI and you use a thread, pay attention on how you do it. Avoid Synchronize as it defeat multithreading. Have you thread update a variable and have the main thread read that variable, using a critical section to avoid contention. Do not poll that variable too fast, use a TTimer to check it once a second for example. If you have a really fast network, disk speed may be the limiting factor. See the FTP component source and change it so that the files are read using much larger buffer. See Arno's message. You may also enlarge winsock buffer and use larger buffer in twsocket used for data channel. -- [EMAIL PROTECTED] The author of the freeware multi-tier middleware MidWare The author of the freeware Internet Component Suite (ICS) http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
[twsocket] FTPClient ftpdir.txt
Hi, I've need the complete time of files of server directory to do a synchronization between client and server. But when I open the ftpdir.txt (after a DIR command), I have'nt complete time: I've got hour, minutes bur not seconds. So Is it a way to get this or have I to use MTDM for each file of directory ? Thanks Arnold -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] FTPClient : CHMOD
How to do with FTPClient a CHMOD command? Use TFtpCli.Quote method to send any non standard command to the server. Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] Author of ICS (Internet Component Suite, freeware) Author of MidWare (Multi-tier framework, freeware) 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
[twsocket] FTPClient : CHMOD
Hi, How to do with FTPClient a CHMOD command? Thanks, Patrice. -- 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
[twsocket] FTPClient specifying a port other than 21...
Thanks for the previous posts. I guess the bottom line is, does FTPClient work with other ports besides port 21 for the version last revised: Apr 18, 2003. I am currently using Delphi 3? I have tried specifying other ports but receive the message 10060 on a file transmit as previously reported. Thanks in advance, James -- 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
Re: [twsocket] FTPClient specifying a port other than 21...
[EMAIL PROTECTED] wrote: Thanks for the previous posts. I guess the bottom line is, does FTPClient work with other ports besides port 21 for the version last revised: Apr 18, 2003. I am currently using Delphi 3? Please read this: http://www.ncftp.com/ncftpd/doc/misc/ftp_and_firewalls.html#NonStdPorts Also, use latest ICS version since it includes new features and fixes of the FTP components. --- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html I have tried specifying other ports but receive the message 10060 on a file transmit as previously reported. Thanks in advance, James -- 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
Re: [twsocket] FTPClient Upload/download size incorrect?
Hello, Is it text file or binary file ? If text file be sure to set binary mode, if not all #13#10 may be converted into #10 if destination is Unix system so each text line will loose 1 byte. regards. CR Using FtpTst demo, I upload a file from c:\dir, size 61,184. After upload, CR size indicates 60995. Download the same file, size is 61,440. CR Anybody know what's going on? I need the sizes to be same on CR upload/download. -- 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
Re: [twsocket] FTPClient Upload/download size incorrect?
Does it with ASCII or binary mode, and with text and binary file. I did look and indeed the #13#10 is converted into #10. ftpAcceptLF doesn't matter. It is Unix. Is there a TFTPClient setting to fix this, or do I simply convert #10s into #13#10s? -Original Message- From: Dod [mailto:[EMAIL PROTECTED] Sent: Saturday, January 13, 2007 04:02 To: ICS support mailing Subject: Re: [twsocket] FTPClient Upload/download size incorrect? Hello, Is it text file or binary file ? If text file be sure to set binary mode, if not all #13#10 may be converted into #10 if destination is Unix system so each text line will loose 1 byte. regards. CR Using FtpTst demo, I upload a file from c:\dir, size 61,184. After CR upload, size indicates 60995. Download the same file, size is 61,440. CR Anybody know what's going on? I need the sizes to be same on CR upload/download. -- 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 -- 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
Re: [twsocket] FTPClient Upload/download size incorrect?
Hello Chris, Send a bin command before transfert. Or look at FTP component properties, may be there is a some .SetBinary ? CR Does it with ASCII or binary mode, and with text and binary file. CR I did look and indeed the #13#10 is converted into #10. ftpAcceptLF CR doesn't matter. CR It is Unix. Is there a TFTPClient setting to fix this, or do I simply CR convert #10s into #13#10s? -Original Message- From: Dod [mailto:[EMAIL PROTECTED] Sent: Saturday, January 13, 2007 04:02 To: ICS support mailing Subject: Re: [twsocket] FTPClient Upload/download size incorrect? Hello, Is it text file or binary file ? If text file be sure to set binary mode, if not all #13#10 may be converted into #10 if destination is Unix system so each text line will loose 1 byte. regards. CR Using FtpTst demo, I upload a file from c:\dir, size 61,184. After CR upload, size indicates 60995. Download the same file, size is 61,440. CR Anybody know what's going on? I need the sizes to be same on CR upload/download. -- 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 -- 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
Re: [twsocket] FTPClient Upload/download size incorrect?
Chris Roller wrote: Does it with ASCII or binary mode, and with text and binary file. I did look and indeed the #13#10 is converted into #10. ftpAcceptLF doesn't matter. It is Unix. Is there a TFTPClient setting to fix this, or do I simply convert #10s into #13#10s? In order transfer data in binary mode you must set property BinaryMode to TRUE as well as call the TypeSet command to send the transfer type to the server. Same when switching back to ascii except property BinaryMode must be set to FALSE before. --- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html -Original Message- From: Dod [mailto:[EMAIL PROTECTED] Sent: Saturday, January 13, 2007 04:02 To: ICS support mailing Subject: Re: [twsocket] FTPClient Upload/download size incorrect? Hello, Is it text file or binary file ? If text file be sure to set binary mode, if not all #13#10 may be converted into #10 if destination is Unix system so each text line will loose 1 byte. regards. CR Using FtpTst demo, I upload a file from c:\dir, size 61,184. After CR upload, size indicates 60995. Download the same file, size is 61,440. CR Anybody know what's going on? I need the sizes to be same on CR upload/download. -- 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 -- 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
Re: [twsocket] FTPClient Upload/download size incorrect?
Thanks, that worked. I feel silly. -Original Message- From: Arno Garrels [mailto:[EMAIL PROTECTED] Sent: Saturday, January 13, 2007 13:43 To: ICS support mailing Subject: Re: [twsocket] FTPClient Upload/download size incorrect? Chris Roller wrote: Does it with ASCII or binary mode, and with text and binary file. I did look and indeed the #13#10 is converted into #10. ftpAcceptLF doesn't matter. It is Unix. Is there a TFTPClient setting to fix this, or do I simply convert #10s into #13#10s? In order transfer data in binary mode you must set property BinaryMode to TRUE as well as call the TypeSet command to send the transfer type to the server. Same when switching back to ascii except property BinaryMode must be set to FALSE before. --- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html -Original Message- From: Dod [mailto:[EMAIL PROTECTED] Sent: Saturday, January 13, 2007 04:02 To: ICS support mailing Subject: Re: [twsocket] FTPClient Upload/download size incorrect? Hello, Is it text file or binary file ? If text file be sure to set binary mode, if not all #13#10 may be converted into #10 if destination is Unix system so each text line will loose 1 byte. regards. CR Using FtpTst demo, I upload a file from c:\dir, size 61,184. After CR upload, size indicates 60995. Download the same file, size is 61,440. CR Anybody know what's going on? I need the sizes to be same on CR upload/download. -- 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 -- 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 -- 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
[twsocket] FTPClient Upload/download size incorrect?
Using FtpTst demo, I upload a file from c:\dir, size 61,184. After upload, size indicates 60995. Download the same file, size is 61,440. Anybody know what's going on? I need the sizes to be same on upload/download. -- 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
[twsocket] FTPClient and strange behaviour
Hello, Markus Humm wrote: I've tried the FTPTst Application right now and found out that a PASS is required after a open, it will delete the file then. But why didn't the server tell me in my program and always claimed to have carried out my delete request? If authentication is required to issue a command the server should send an error code, typically 530. Okay, will pay attention to it. Is there any short overview of the FTP-protocols available? Afaik the RFCs are a bit longish I fear. Doesn't really matter, because the put still only works for the second time. No problem here using FtpTst demo and FileZilla server. As I noticed he tries to open a binary connection although I left binary mode unchecked. In order to set transfer mode you must set property BinaryMode to TRUE as well as issue command TypeSet to send the transfer type command to the server. Same when switching back to ascii except property BinaryMode must be set to FALSE before issuing the TypeSet command. Okay, didn't know that. Will try out that typeset command. But why has FtpCli a property for transfer mode then anyway? What's happening here? I'll need a binary transfer later, but not at this time. Why the need of a 2nd put? Why does the first one fail? Is it my FTPServer? Very unlikely, try to upload with FtpTst demo first. If that works the problem should be in your code. I've tried that and the very same happens here! I'll try the mentioned things above (might take some days) and report back. Greetings Markus -- 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
Re: [twsocket] FTPClient and strange behaviour
Markus Humm wrote: If authentication is required to issue a command the server should send an error code, typically 530. Okay, will pay attention to it. Is there any short overview of the FTP-protocols available? Afaik the RFCs are a bit longish I fear. RFCs are the standards, there's no way around. In order to set transfer mode you must set property BinaryMode to TRUE as well as issue command TypeSet to send the transfer type command to the server. Same when switching back to ascii except property BinaryMode must be set to FALSE before issuing the TypeSet command. Okay, didn't know that. Will try out that typeset command. But why has FtpCli a property for transfer mode then anyway? It's easier having a boolean instead of recalling parameters of char 'I' and 'A'. Very unlikely, try to upload with FtpTst demo first. If that works the problem should be in your code. I've tried that and the very same happens here! Is the server buggy? Which FTP server are you using? --- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html I'll try the mentioned things above (might take some days) and report back. Greetings Markus -- 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
[twsocket] FTPClient and strange behaviour
Message: 3 Date: Sun, 2 Jul 2006 21:38:06 +0200 From: Arno Garrels [EMAIL PROTECTED] Subject: Re: [twsocket] FTPClient and strange behaviour To: ICS support mailing twsocket@elists.org Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=iso-8859-1 Markus Humm wrote: When I try to delete the file I want to send first from the FTP server it always says it has been deleted, but the file is still in the directory of the server?! What's happening there? The statuscode sent back by the server is 250. When I try to send my file to the server I need to 'put' it twice, the first time it gives me a 425 Can't open data connection. (so statuscode is 425) but the second time the file get's send okay. Are you able to reproduce the problem using the FTP demo, FtpTst.dpr? --- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html I've tried the FTPTst Application right now and found out that a PASS is required after a open, it will delete the file then. But why didn't the server tell me in my program and always claimed to have carried out my delete request? Doesn't really matter, because the put still only works for the second time. As I noticed he tries to open a binary connection although I left binary mode unchecked. What's happening here? I'll need a binary transfer later, but not at this time. Why the need of a 2nd put? Why does the first one fail? Is it my FTPServer? Greetings Markus -- 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
[twsocket] FTPClient and strange behaviour
Hello, I'm using D2006, ICS 5 (from the Partner DVD) and Windows XP professional with a lightwight FTP-Server. I'm writing some application which is to be used to maintain a website later and for this a html-file is created on the local PC and should be transferred to the webserver using FTP. I can connect and disconnect without problems from the local FTP-Server used for development but deleting files and sending files gives me some irritations. When I try to delete the file I want to send first from the FTP server it always says it has been deleted, but the file is still in the directory of the server?! What's happening there? The statuscode sent back by the server is 250. When I try to send my file to the server I need to 'put' it twice, the first time it gives me a 425 Can't open data connection. (so statuscode is 425) but the second time the file get's send okay. As Transfermode I use text not binary, since I think that's okay for a html-file. What's happening here? Is this normal, or my little FTP-Server or does my application not yet comply to FTP-standards? Greetings Markus -- 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
[twsocket] FTPClient problem w. large files in D7
Hello, i have installed the ics width Delphi7 i would download with the ftp-client a large file (6GByte). After 2GB the client hang (overflow integer) why doesn't work the in64-version of the functions in D7 ? in Delphi 5 the ftp-client works with get fine a download 6 GByte. Best regards Richard -- 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
Re: [twsocket] FTPClient problem w. large files in D7
Richard (Delphi) wrote: After 2GB the client hang (overflow integer) why doesn't work the in64-version of the functions in D7 ? Please post the line number where the exception is being raised. If you don't run the application in the IDE you can compile a debug-version using MadExcept http://www.madshi.net/madExceptDescription.htm --- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html -- 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
Re: [twsocket] FTPClient problem w. large files in D7
Delphi wrote: Hello Arno Garrels i get the exception EIntOverflow in Line 3842 in ..\vcl32\wsocket.pas If it is this line FReadCount := FReadCount + Result; it's clear. FReadCount is just an integer. Instead it should be defined as Int64 in newer compilers. If CBuilder 4 supports Int64 (D4 supports it for sure) it could be changed in WSocket.pas line 786 like this: bAllSent: Boolean; {$IFDEF COMPILER4_UP} FReadCount : Int64; {$ELSE} FReadCount : LongInt; {$END} FPaused : Boolean; And ~ Line 988: property AllSent : Booleanread bAllSent; {$IFDEF COMPILER4_UP} property ReadCount : Int64 read FReadCount; {$ELSE} property ReadCount : LongIntread FReadCount; {$END} property RcvdCount : LongIntread GetRcvdCount; Please try these UNTESTED! changes and post the result, I'm currently not sure whether further changes are required. Compile your project by Option Build All once after the changes. --- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html Richard Arno Garrels wrote:: Richard (Delphi) wrote: After 2GB the client hang (overflow integer) why doesn't work the in64-version of the functions in D7 ? Please post the line number where the exception is being raised. If you don't run the application in the IDE you can compile a debug-version using MadExcept http://www.madshi.net/madExceptDescription.htm --- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html exception EIntOverflow in Line 3842 in ..\vcl32\wsocket.pas -- 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
Re: [twsocket] FTPClient problem w. large files in D7
Sorry, exchange {$END} by {$ENDIF}, the beer was too good yesterday 8-( bAllSent: Boolean; {$IFDEF COMPILER4_UP} FReadCount : Int64; {$ELSE} FReadCount : LongInt; {$ENDIF} FPaused : Boolean; And ~ Line 988: property AllSent : Booleanread bAllSent; {$IFDEF COMPILER4_UP} property ReadCount : Int64 read FReadCount; {$ELSE} property ReadCount : LongIntread FReadCount; {$ENDIF} property RcvdCount : LongIntread GetRcvdCount; Arno Garrels wrote: Delphi wrote: Hello Arno Garrels i get the exception EIntOverflow in Line 3842 in ..\vcl32\wsocket.pas If it is this line FReadCount := FReadCount + Result; it's clear. FReadCount is just an integer. Instead it should be defined as Int64 in newer compilers. If CBuilder 4 supports Int64 (D4 supports it for sure) it could be changed in WSocket.pas line 786 like this: bAllSent: Boolean; {$IFDEF COMPILER4_UP} FReadCount : Int64; {$ELSE} FReadCount : LongInt; {$END} FPaused : Boolean; And ~ Line 988: property AllSent : Booleanread bAllSent; {$IFDEF COMPILER4_UP} property ReadCount : Int64 read FReadCount; {$ELSE} property ReadCount : LongIntread FReadCount; {$END} property RcvdCount : LongIntread GetRcvdCount; Please try these UNTESTED! changes and post the result, I'm currently not sure whether further changes are required. Compile your project by Option Build All once after the changes. --- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html Richard Arno Garrels wrote:: Richard (Delphi) wrote: After 2GB the client hang (overflow integer) why doesn't work the in64-version of the functions in D7 ? Please post the line number where the exception is being raised. If you don't run the application in the IDE you can compile a debug-version using MadExcept http://www.madshi.net/madExceptDescription.htm --- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html exception EIntOverflow in Line 3842 in ..\vcl32\wsocket.pas -- 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
Re: [twsocket] FTPClient problem w. large files in D7
If it is this line FReadCount := FReadCount + Result; it's clear. FReadCount is just an integer. Instead it should be defined as Int64 in newer compilers. Very strange that error never came up when I added 64-bit support to the FTP client 6 month ago, I know I successfully tested DVD image files larger than 2 gigs. Angus -- 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
Re: [twsocket] FTPClient problem w. large files in D7
Angus Robertson - Magenta Systems Ltd wrote: If it is this line FReadCount := FReadCount + Result; it's clear. FReadCount is just an integer. Instead it should be defined as Int64 in newer compilers. Very strange that error never came up when I added 64-bit support to the FTP client 6 month ago, I know I successfully tested DVD image files larger than 2 gigs. Is it possible that you tested the upload only? Arno Angus -- 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
Re: [twsocket] FTPClient problem w. large files in D7
Very strange that error never came up when I added 64-bit support to the FTP client 6 month ago, I know I successfully tested DVD image files larger than 2 gigs. Is it possible that you tested the upload only? I would have testing both upload and download, but I was also testing resumed transfers as well, and deliberately interrupted some tests (by pulling the LAN cable) to ensure resume worked, that might have reduced some actual sessions below 2 gig. I might also have had the compiler ignore overflow set, since FReadCount is not really used. Angus -- 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
Re: [twsocket] FTPClient problem w. large files in D7
in delphi 5 it works fine, but in delphi 7 i get the error. is this acute;not the same code? (stream.pas)?? richard Angus Robertson - Magenta Systems Ltd [EMAIL PROTECTED] schrieb: Very strange that error never came up when I added 64-bit support to the FTP client 6 month ago, I know I successfully tested DVD image files larger than 2 gigs. Is it possible that you tested the upload only? I would have testing both upload and download, but I was also testing resumed transfers as well, and deliberately interrupted some tests (by pulling the LAN cable) to ensure resume worked, that might have reduced some actual sessions below 2 gig. I might also have had the compiler ignore overflow set, since FReadCount is not really used. Angus -- 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
Re: [twsocket] FTPClient problem w. large files in D7
As Angus said, it is probably a matter of compiler option generating code to detect - or not - the overflow. Check the settings for your D5 and D6. -- Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: Richard (Delphi) [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Tuesday, May 30, 2006 6:33 PM Subject: Re: [twsocket] FTPClient problem w. large files in D7 in delphi 5 it works fine, but in delphi 7 i get the error. is this acute;not the same code? (stream.pas)?? richard Angus Robertson - Magenta Systems Ltd [EMAIL PROTECTED] schrieb: Very strange that error never came up when I added 64-bit support to the FTP client 6 month ago, I know I successfully tested DVD image files larger than 2 gigs. Is it possible that you tested the upload only? I would have testing both upload and download, but I was also testing resumed transfers as well, and deliberately interrupted some tests (by pulling the LAN cable) to ensure resume worked, that might have reduced some actual sessions below 2 gig. I might also have had the compiler ignore overflow set, since FReadCount is not really used. Angus -- 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 -- 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
Re: [twsocket] FTPClient problem w. large files in D7
Hello, i've checked the compileroptions, but the options are for me the same (D5 - D7). After change the wsocket.pas it works .. :-) i don't know, what is was. thanks richard bAllSent: Boolean; {$IFDEF COMPILER4_UP} FReadCount : Int64; {$ELSE} FReadCount : LongInt; {$ENDIF} FPaused : Boolean; And ~ Line 988: property AllSent : Booleanread bAllSent; {$IFDEF COMPILER4_UP} property ReadCount : Int64 read FReadCount; {$ELSE} property ReadCount : LongIntread FReadCount; {$ENDIF} property RcvdCount : LongIntread GetRcvdCount; Arno Garrels wrote: Delphi wrote: Hello Arno Garrels i get the exception EIntOverflow in Line 3842 in ..\vcl32\wsocket.pas If it is this line FReadCount := FReadCount + Result; it's clear. FReadCount is just an integer. Instead it should be defined as Int64 in newer compilers. If CBuilder 4 supports Int64 (D4 supports it for sure) it could be changed in WSocket.pas line 786 like this: bAllSent: Boolean; {$IFDEF COMPILER4_UP} FReadCount : Int64; {$ELSE} FReadCount : LongInt; {$END} FPaused : Boolean; And ~ Line 988: property AllSent : Booleanread bAllSent; {$IFDEF COMPILER4_UP} property ReadCount : Int64 read FReadCount; {$ELSE} property ReadCount : LongIntread FReadCount; {$END} property RcvdCount : LongIntread GetRcvdCount; Please try these UNTESTED! changes and post the result, I'm currently not sure whether further changes are required. Compile your project by Option Build All once after the changes. --- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html Richard Arno Garrels wrote:: Richard (Delphi) wrote: After 2GB the client hang (overflow integer) why doesn't work the in64-version of the functions in D7 ? Please post the line number where the exception is being raised. If you don't run the application in the IDE you can compile a debug-version using MadExcept http://www.madshi.net/madExceptDescription.htm --- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html exception EIntOverflow in Line 3842 in ..\vcl32\wsocket.pas -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Francois PIETTE schrieb: As Angus said, it is probably a matter of compiler option generating code to detect - or not - the overflow. Check the settings for your D5 and D6. -- Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: Richard (Delphi) [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Tuesday, May 30, 2006 6:33 PM Subject: Re: [twsocket] FTPClient problem w. large files in D7 in delphi 5 it works fine, but in delphi 7 i get the error. is this acute;not the same code? (stream.pas)?? richard Angus Robertson - Magenta Systems Ltd [EMAIL PROTECTED] schrieb: Very strange that error never came up when I added 64-bit support to the FTP client 6 month ago, I know I successfully tested DVD image files larger than 2 gigs. Is it possible that you tested the upload only? I would have testing both upload and download, but I was also testing resumed transfers as well, and deliberately interrupted some tests (by pulling the LAN cable) to ensure resume worked, that might have reduced some actual sessions below 2 gig. I might also have had the compiler ignore overflow set, since FReadCount is not really used. Angus -- 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 -- 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
[twsocket] FTPClient ASCII or Binary ?
Is there something wrong with the code below. As far as I understand it should be uploading in binary mode, but the FTP conversation looks like it's in ASCII mode, though the (23MB) file does seem to upload correctly. If I try something like FTPexplorer then the FTP log does show Opening BINARY mode ., so presumably it's not the server reporting wrongly or does the client generate the message text from the status number ? if FTPClient1.Cwd() then begin if not (FTPClient1.Binary) then begin FTPClient1.Binary := true; FTPClient1.TypeSet(); end; FTPClient1.dele; FTPClient1.put; end; CWD /anon_ftp/pub/RentalDesk_NX/ 250 CWD command successful DELE RentalDeskNXWorkStation.EXE 250 DELE command successful PORT 192,168,42,215,18,32 200 PORT command successful STOR RentalDeskNXWorkStation.EXE 150 Opening ASCII mode data connection for RentalDeskNXWorkStation.EXE regards David David Rose Navigator Systems Ltd, Network Business Centre, 3 Gloucester Street, Bath, BA1 2SE,UK Main Tel: +44 (0)7000 NAVSYS (628797) Fax: +44 (0)7000 NAVFAX (628329) Company Email: [EMAIL PROTECTED] (Private e-mail on request) CONFIDENTIALITY NOTICE The contents of this e-mail are confidential to the ordinary user of the e-mail address to which it was addressed and may also be privileged. If you are not the addressee of this e-mail you may not copy, forward, disclose or otherwise use it or any part of it in any form whatsoever. If you have received this e-mail in error please e-mail the sender by replying to this message. -- 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
Re: [twsocket] FTPClient ASCII or Binary ?
Hi, Try removing the if not (FTPClient1.Binary) then line. It could already be binary in the component but the typeset command may not have been issued before. Regards, SZ - Original Message - From: David Rose [EMAIL PROTECTED] To: twsocket@elists.org Sent: Friday, December 16, 2005 12:26 AM Subject: [twsocket] FTPClient ASCII or Binary ? Is there something wrong with the code below. As far as I understand it should be uploading in binary mode, but the FTP conversation looks like it's in ASCII mode, though the (23MB) file does seem to upload correctly. If I try something like FTPexplorer then the FTP log does show Opening BINARY mode ., so presumably it's not the server reporting wrongly or does the client generate the message text from the status number ? if FTPClient1.Cwd() then begin if not (FTPClient1.Binary) then begin FTPClient1.Binary := true; FTPClient1.TypeSet(); end; FTPClient1.dele; FTPClient1.put; end; CWD /anon_ftp/pub/RentalDesk_NX/ 250 CWD command successful DELE RentalDeskNXWorkStation.EXE 250 DELE command successful PORT 192,168,42,215,18,32 200 PORT command successful STOR RentalDeskNXWorkStation.EXE 150 Opening ASCII mode data connection for RentalDeskNXWorkStation.EXE regards David David Rose Navigator Systems Ltd, Network Business Centre, 3 Gloucester Street, Bath, BA1 2SE,UK Main Tel: +44 (0)7000 NAVSYS (628797) Fax: +44 (0)7000 NAVFAX (628329) Company Email: [EMAIL PROTECTED] (Private e-mail on request) CONFIDENTIALITY NOTICE The contents of this e-mail are confidential to the ordinary user of the e-mail address to which it was addressed and may also be privileged. If you are not the addressee of this e-mail you may not copy, forward, disclose or otherwise use it or any part of it in any form whatsoever. If you have received this e-mail in error please e-mail the sender by replying to this message. -- 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 -- 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
[twsocket] FTPClient not ready
hi All, In my application i have 3 TTimer compents that on interval time send ftp command with TFtpClient components. I control this procedure on OnRequest event but the component say FTPclient not ready; how make to control this event, why ? Thank in advanced. Marco. Italy -- 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
Re: [twsocket] FTPClient speeds
Hello! I wrote a write-buffering stream. Anyone interested? Adding read and seek support and extending it so it can write to other streams shouldn't be difficult. snip I thought windows buffered writes anyway? Is this so you can have a larger buffer or something completely different? Indeed, Windows buffers writes, so disk heads don't go over FAT and file too frequently (without buffering, every write consists of writing data to the disk in both file data sectors, and FAT sectors - three writes, one byte each, will cause five or six head seeks, with buffering, there'll be only one actual write to file and one FAT update). But parameter checking and windows' internal buffering code is slower than buffering on application side. That is - having your app to write in greater chunks speeds things up CONSIDERABLY. Why won't you check it? :) -- Piotr Hellrayzer Dalek [EMAIL PROTECTED] -- Startuj z INTERIA.PL! http://link.interia.pl/f186c -- 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
Re: [twsocket] FTPClient speeds
Also remember that if you use xDSL connection your upload bandwidth much smaller than download one. Is GET faster than PUT? In my tests GET performs seven times faster than PUT. FP Considering the transport, there is no reason to have a speed difference. Server caches files, is that the reason? FP That helps have high performance. FP -- FP [EMAIL PROTECTED] FP 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
Re: [twsocket] FTPClient speeds
Dod wrote: Also remember that if you use xDSL connection your upload bandwidth much smaller than download one. Yes I know, I was just wondering whether file caching can make such a big difference. BTW: I already suggested last year to write/implement a tiny buffered stream class, that would boost performance in most high level ICS components. I'm actually busy with another ICS work, if somebody has some time and wants to enter the Hall Of Fame...;-) Is GET faster than PUT? In my tests GET performs seven times faster than PUT. FP Considering the transport, there is no reason to have a speed difference. Server caches files, is that the reason? FP That helps have high performance. FP -- FP [EMAIL PROTECTED] FP 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
Re: [twsocket] FTPClient speeds
Hello Arno, I could but...don't remember where is my stop-time watch I just bought around the corner to make it pause life-time for next 10 years :-) AG Dod wrote: Also remember that if you use xDSL connection your upload bandwidth much smaller than download one. AG Yes I know, I was just wondering whether file caching can make such a big AG difference. AG BTW: I already suggested last year to write/implement a tiny buffered stream AG class, that would boost performance in most high level ICS components. AG I'm actually busy with another ICS work, if somebody has some time and wants AG to enter the Hall Of Fame...;-) Is GET faster than PUT? In my tests GET performs seven times faster than PUT. FP Considering the transport, there is no reason to have a speed difference. Server caches files, is that the reason? FP That helps have high performance. FP -- FP [EMAIL PROTECTED] FP 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
Re: [twsocket] FTPClient speeds
Is GET faster than PUT? In my tests GET performs seven times faster than PUT. Server caches files, is that the reason? Yes, reading a file will always be much faster than writing one, particularly on a heavily loaded web server where much of the content is coming from memory, and stuff is rarely to disk. Angus -- 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
[twsocket] FTPClient not ready
Hi All, in my delphi application i use the TFtpClient with timer that on interval retrieve file from my ftp server. My first time ftpclient works, but another time stop it generate FTP Component not ready, Why ? How do i control this situation ? Thanks a lot in advanced for answer. Spank-Italy -- 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
Re: [twsocket] FTPClient
Thank you very much. He have found the problem. The servername was incorrect. Regards. - Original Message - From: Arno Garrels [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Monday, June 27, 2005 6:35 PM Subject: Re: [twsocket] FTPClient Carlos Lalín wrote: it Creates the first exception not connected but in my code: FtpClient1.Connect; if (FtpClient1.Connected) Then begin raise Exception.Create('Conected'); end; this too creates the exception 'Conected'. I don't know if this server requires login, I have used the configuration that they give me. In a program FTP, it connects find and it shows all files. Sorry, I mixed something up, method Connect does the login for you (very strange naming!). Connect executes the 3 methods Open, User and Pass in one go. So in order to know what exactly went wrong try this: if not FtpClient1.Connect then raise Exception.Create('Connect: ' + FtpClient1.LastResponse); Arno Garrels - Original Message - From: Arno Garrels [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Monday, June 27, 2005 5:00 PM Subject: Re: [twsocket] FTPClient What happens when you try this? The code is: FtpClient1.HostName := servername; FtpClient1.Port := 'ftp'; FtpClient1.HostDirName := '/'; FtpClient1.UserName := username; FtpClient1.Password := password; FtpClient1.LocalFileName := 'listado.txt'; FtpClient1.HostFileName := ''; lista.clear(); if not FtpClient1.Connect then raise Exception.Create('not connected'); if not FtpClient1.Cwd then raise Exception.Create('CWD failed'); FtpClient1.Binary := False; if not FtpClient1.TypeSet then raise Exception.Create('TypeSet to ascii mode failed'); if not FtpClient1.Ls then raise Exception.Create('LS failed'); .. Doesn't the server require a login? Arno Garrels Carlos Lalín wrote: The code is: FtpClient1.HostName := servername; FtpClient1.Port := 'ftp'; FtpClient1.Binary:= true; FtpClient1.HostDirName := '/'; FtpClient1.UserName := username; FtpClient1.Password := password; FtpClient1.LocalFileName := 'listado.txt'; FtpClient1.HostFileName := ''; lista.clear(); FtpClient1.Connect; FtpClient1.Cwd; FtpClient1.Ls; lista.LoadFromFile('listado.txt') For i:=0 to lista.Count-1 do begin memo1.lines.add('Fichero ' + lista[i]); end; FtpClient1.Quit; -- lista has 0 elements. Regards. - Original Message - From: Arno Garrels [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Monday, June 27, 2005 2:17 PM Subject: Re: [twsocket] FTPClient Carlos Lalín wrote: I'm sorry but this is like that. The files are there but the file is empty. The conection doesn't produce error. Can you show some lines of code? Arno Garrels Carlos. - Original Message - From: Arno Garrels [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Monday, June 27, 2005 1:18 PM Subject: Re: [twsocket] FTPClient Carlos Lalín wrote: After doing Ls, the file is empty I don't think it's possible *if the remote directory was not empty. You *may get an error in OnRequestDone if it was empty and file listing was therefore not sent. Arno Garrels Carlos Lalín wrote: Hello, I use the component FTPCliente to download files from a server. I indicate the name of the file where appear the name of the files to download. After doing Ls, the file is empty when with another program FTP I see that there are files. To what can it owe? Thank you. Regards. Carlos. -- 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 -- 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 -- 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 -- 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 -- 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
[twsocket] FTPClient
Hello, I use the component FTPCliente to download files from a server. I indicate the name of the file where appear the name of the files to download. After doing Ls, the file is empty when with another program FTP I see that there are files. To what can it owe? Thank you. Regards. Carlos. -- 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
Re: [twsocket] FTPClient
Carlos Lalín wrote: After doing Ls, the file is empty I don't think it's possible *if the remote directory was not empty. You *may get an error in OnRequestDone if it was empty and file listing was therefore not sent. Arno Garrels Carlos Lalín wrote: Hello, I use the component FTPCliente to download files from a server. I indicate the name of the file where appear the name of the files to download. After doing Ls, the file is empty when with another program FTP I see that there are files. To what can it owe? Thank you. Regards. Carlos. -- 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
Re: [twsocket] FTPClient
I'm sorry but this is like that. The files are there but the file is empty. The conection doesn't produce error. Carlos. - Original Message - From: Arno Garrels [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Monday, June 27, 2005 1:18 PM Subject: Re: [twsocket] FTPClient Carlos Lalín wrote: After doing Ls, the file is empty I don't think it's possible *if the remote directory was not empty. You *may get an error in OnRequestDone if it was empty and file listing was therefore not sent. Arno Garrels Carlos Lalín wrote: Hello, I use the component FTPCliente to download files from a server. I indicate the name of the file where appear the name of the files to download. After doing Ls, the file is empty when with another program FTP I see that there are files. To what can it owe? Thank you. Regards. Carlos. -- 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 -- 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
Re: [twsocket] FTPClient
The code is: FtpClient1.HostName := servername; FtpClient1.Port := 'ftp'; FtpClient1.Binary:= true; FtpClient1.HostDirName := '/'; FtpClient1.UserName := username; FtpClient1.Password := password; FtpClient1.LocalFileName := 'listado.txt'; FtpClient1.HostFileName := ''; lista.clear(); FtpClient1.Connect; FtpClient1.Cwd; FtpClient1.Ls; lista.LoadFromFile('listado.txt') For i:=0 to lista.Count-1 do begin memo1.lines.add('Fichero ' + lista[i]); end; FtpClient1.Quit; -- lista has 0 elements. Regards. - Original Message - From: Arno Garrels [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Monday, June 27, 2005 2:17 PM Subject: Re: [twsocket] FTPClient Carlos Lalín wrote: I'm sorry but this is like that. The files are there but the file is empty. The conection doesn't produce error. Can you show some lines of code? Arno Garrels Carlos. - Original Message - From: Arno Garrels [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Monday, June 27, 2005 1:18 PM Subject: Re: [twsocket] FTPClient Carlos Lalín wrote: After doing Ls, the file is empty I don't think it's possible *if the remote directory was not empty. You *may get an error in OnRequestDone if it was empty and file listing was therefore not sent. Arno Garrels Carlos Lalín wrote: Hello, I use the component FTPCliente to download files from a server. I indicate the name of the file where appear the name of the files to download. After doing Ls, the file is empty when with another program FTP I see that there are files. To what can it owe? Thank you. Regards. Carlos. -- 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 -- 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 -- 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
Re: [twsocket] FTPClient
What happens when you try this? The code is: FtpClient1.HostName := servername; FtpClient1.Port := 'ftp'; FtpClient1.HostDirName := '/'; FtpClient1.UserName := username; FtpClient1.Password := password; FtpClient1.LocalFileName := 'listado.txt'; FtpClient1.HostFileName := ''; lista.clear(); if not FtpClient1.Connect then raise Exception.Create('not connected'); if not FtpClient1.Cwd then raise Exception.Create('CWD failed'); FtpClient1.Binary := False; if not FtpClient1.TypeSet then raise Exception.Create('TypeSet to ascii mode failed'); if not FtpClient1.Ls then raise Exception.Create('LS failed'); .. Doesn't the server require a login? Arno Garrels Carlos Lalín wrote: The code is: FtpClient1.HostName := servername; FtpClient1.Port := 'ftp'; FtpClient1.Binary:= true; FtpClient1.HostDirName := '/'; FtpClient1.UserName := username; FtpClient1.Password := password; FtpClient1.LocalFileName := 'listado.txt'; FtpClient1.HostFileName := ''; lista.clear(); FtpClient1.Connect; FtpClient1.Cwd; FtpClient1.Ls; lista.LoadFromFile('listado.txt') For i:=0 to lista.Count-1 do begin memo1.lines.add('Fichero ' + lista[i]); end; FtpClient1.Quit; -- lista has 0 elements. Regards. - Original Message - From: Arno Garrels [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Monday, June 27, 2005 2:17 PM Subject: Re: [twsocket] FTPClient Carlos Lalín wrote: I'm sorry but this is like that. The files are there but the file is empty. The conection doesn't produce error. Can you show some lines of code? Arno Garrels Carlos. - Original Message - From: Arno Garrels [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Monday, June 27, 2005 1:18 PM Subject: Re: [twsocket] FTPClient Carlos Lalín wrote: After doing Ls, the file is empty I don't think it's possible *if the remote directory was not empty. You *may get an error in OnRequestDone if it was empty and file listing was therefore not sent. Arno Garrels Carlos Lalín wrote: Hello, I use the component FTPCliente to download files from a server. I indicate the name of the file where appear the name of the files to download. After doing Ls, the file is empty when with another program FTP I see that there are files. To what can it owe? Thank you. Regards. Carlos. -- 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 -- 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 -- 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
Re: [twsocket] FTPClient
it Creates the first exception not connected but in my code: FtpClient1.Connect; if (FtpClient1.Connected) Then begin raise Exception.Create('Conected'); end; this too creates the exception 'Conected'. I don't know if this server requires login, I have used the configuration that they give me. In a program FTP, it connects find and it shows all files. - Original Message - From: Arno Garrels [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Monday, June 27, 2005 5:00 PM Subject: Re: [twsocket] FTPClient What happens when you try this? The code is: FtpClient1.HostName := servername; FtpClient1.Port := 'ftp'; FtpClient1.HostDirName := '/'; FtpClient1.UserName := username; FtpClient1.Password := password; FtpClient1.LocalFileName := 'listado.txt'; FtpClient1.HostFileName := ''; lista.clear(); if not FtpClient1.Connect then raise Exception.Create('not connected'); if not FtpClient1.Cwd then raise Exception.Create('CWD failed'); FtpClient1.Binary := False; if not FtpClient1.TypeSet then raise Exception.Create('TypeSet to ascii mode failed'); if not FtpClient1.Ls then raise Exception.Create('LS failed'); .. Doesn't the server require a login? Arno Garrels Carlos Lalín wrote: The code is: FtpClient1.HostName := servername; FtpClient1.Port := 'ftp'; FtpClient1.Binary:= true; FtpClient1.HostDirName := '/'; FtpClient1.UserName := username; FtpClient1.Password := password; FtpClient1.LocalFileName := 'listado.txt'; FtpClient1.HostFileName := ''; lista.clear(); FtpClient1.Connect; FtpClient1.Cwd; FtpClient1.Ls; lista.LoadFromFile('listado.txt') For i:=0 to lista.Count-1 do begin memo1.lines.add('Fichero ' + lista[i]); end; FtpClient1.Quit; -- lista has 0 elements. Regards. - Original Message - From: Arno Garrels [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Monday, June 27, 2005 2:17 PM Subject: Re: [twsocket] FTPClient Carlos Lalín wrote: I'm sorry but this is like that. The files are there but the file is empty. The conection doesn't produce error. Can you show some lines of code? Arno Garrels Carlos. - Original Message - From: Arno Garrels [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Monday, June 27, 2005 1:18 PM Subject: Re: [twsocket] FTPClient Carlos Lalín wrote: After doing Ls, the file is empty I don't think it's possible *if the remote directory was not empty. You *may get an error in OnRequestDone if it was empty and file listing was therefore not sent. Arno Garrels Carlos Lalín wrote: Hello, I use the component FTPCliente to download files from a server. I indicate the name of the file where appear the name of the files to download. After doing Ls, the file is empty when with another program FTP I see that there are files. To what can it owe? Thank you. Regards. Carlos. -- 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 -- 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 -- 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 -- 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
Re: [twsocket] FTPClient
Carlos Lalín wrote: it Creates the first exception not connected but in my code: FtpClient1.Connect; if (FtpClient1.Connected) Then begin raise Exception.Create('Conected'); end; this too creates the exception 'Conected'. I don't know if this server requires login, I have used the configuration that they give me. In a program FTP, it connects find and it shows all files. Sorry, I mixed something up, method Connect does the login for you (very strange naming!). Connect executes the 3 methods Open, User and Pass in one go. So in order to know what exactly went wrong try this: if not FtpClient1.Connect then raise Exception.Create('Connect: ' + FtpClient1.LastResponse); Arno Garrels - Original Message - From: Arno Garrels [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Monday, June 27, 2005 5:00 PM Subject: Re: [twsocket] FTPClient What happens when you try this? The code is: FtpClient1.HostName := servername; FtpClient1.Port := 'ftp'; FtpClient1.HostDirName := '/'; FtpClient1.UserName := username; FtpClient1.Password := password; FtpClient1.LocalFileName := 'listado.txt'; FtpClient1.HostFileName := ''; lista.clear(); if not FtpClient1.Connect then raise Exception.Create('not connected'); if not FtpClient1.Cwd then raise Exception.Create('CWD failed'); FtpClient1.Binary := False; if not FtpClient1.TypeSet then raise Exception.Create('TypeSet to ascii mode failed'); if not FtpClient1.Ls then raise Exception.Create('LS failed'); .. Doesn't the server require a login? Arno Garrels Carlos Lalín wrote: The code is: FtpClient1.HostName := servername; FtpClient1.Port := 'ftp'; FtpClient1.Binary:= true; FtpClient1.HostDirName := '/'; FtpClient1.UserName := username; FtpClient1.Password := password; FtpClient1.LocalFileName := 'listado.txt'; FtpClient1.HostFileName := ''; lista.clear(); FtpClient1.Connect; FtpClient1.Cwd; FtpClient1.Ls; lista.LoadFromFile('listado.txt') For i:=0 to lista.Count-1 do begin memo1.lines.add('Fichero ' + lista[i]); end; FtpClient1.Quit; -- lista has 0 elements. Regards. - Original Message - From: Arno Garrels [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Monday, June 27, 2005 2:17 PM Subject: Re: [twsocket] FTPClient Carlos Lalín wrote: I'm sorry but this is like that. The files are there but the file is empty. The conection doesn't produce error. Can you show some lines of code? Arno Garrels Carlos. - Original Message - From: Arno Garrels [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Monday, June 27, 2005 1:18 PM Subject: Re: [twsocket] FTPClient Carlos Lalín wrote: After doing Ls, the file is empty I don't think it's possible *if the remote directory was not empty. You *may get an error in OnRequestDone if it was empty and file listing was therefore not sent. Arno Garrels Carlos Lalín wrote: Hello, I use the component FTPCliente to download files from a server. I indicate the name of the file where appear the name of the files to download. After doing Ls, the file is empty when with another program FTP I see that there are files. To what can it owe? Thank you. Regards. Carlos. -- 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 -- 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 -- 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 -- 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
Re: [twsocket] FTPClient UNIX-Server - How to setup binary mode? - isthis the right way?
Mice Cage wrote: I know now that I have to use the Typeset-Command. I hope I placed it now at the right place: ftpclient1.cwd; {}FtpClient1.TypeSet; Yes. Arno Garrels -- 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