Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » U++ Developers corner » SFTP or full SSH2 support for U++? (Discussion about implementing the SSH2 protocol using libssh2)
Re: SFTP or full SSH2 support for U++? [message #48663 is a reply to message #48662] Mon, 14 August 2017 14:46 Go to previous messageGo to previous message
Tom1
Messages: 1216
Registered: March 2007
Senior Contributor
Hi,

Thanks for your prompt reply. (Although I'm not in any hurry with this, whatsoever.)

Well, I tried the async approach just to test, but I had the exact same problem with the synchronous one too .. i.e. This fails:
if(session.IsSuccess()){
		SFtp::DirList list;
		SFtp sftp(session);
		if(!sftp.ListDir(directoryname, list))
                   return sftp.MakeDir(directoryname, 0755);
               
}



But this works:

if(session.IsSuccess()){
		SFtp::DirList list;
		SFtp sftp(session);
		if(!sftp.ListDir(directoryname, list)){
			SFtp sftp2(session);
			return sftp2.MakeDir(directoryname, 0755);
		}
               
}


The high level helpers, like you pictured in your message, would be great. Please check the naming of U++ counterparts to keep the access easy. (BTW: I think that I have seen IsOK() quite frequently in U++ instead of IsSuccess(), but I'm not sure if these are supposed to mean exactly the same thing.)

Thanks and best regards,

Tom
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Help needed with link errors (serversocket)
Next Topic: Ultimate++ repo and chat?
Goto Forum:
  


Current Time: Thu May 16 12:10:36 CEST 2024

Total time taken to generate the page: 0.02087 seconds