West Wind Internet and Client Tools
SFTP vs FTP properties
Gravatar is a globally recognized avatar based on your email address. SFTP vs FTP properties
  Richard Kaye
  All
  Jul 24, 2017 @ 02:23pm

Hi Rick,

I've just been tasked with doing an SFTP implementation on a project that was previously using vanilla FTP. In the process of reviewing the wwSFTP class, I'm noting several properties that are in wwFTP.prg but not wwSFTP.prg. In particular, the properties for passive mode, binary file type and buffer size do not appear to be part of the wwSFTP class and I've been setting those in my current implmentation. Is there some not so obvious to me inheritance going on here or will this blow up if I try to refer to those props when referencing an object derived from the SFTP class.

Thanks.

Gravatar is a globally recognized avatar based on your email address. re: SFTP vs FTP properties
  Rick Strahl
  Richard Kaye
  Jul 24, 2017 @ 04:36pm

The wwsftp class inherits from wwftp so those properties are there - they just don't do anything.

All SFTP transfers are binary and because it's over a secure SSL channel the connections are always active. If you set those properties, they are simply ignored for the SFTP code.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: SFTP vs FTP properties
  Richard Kaye
  Rick Strahl
  Jul 25, 2017 @ 09:21am

Thanks, Rick. If the properties are in the object then I don't have to worry about defensive coding to avoid setting something that doesn't exist. I also realize I should have posted this in the Client Tools forum and will follow up there with any questions.

© 1996-2024