login about faq

In my cocoa application, i am trying to connect and upload files to server. For that i'm using below given code for connecting the sftp.

success = [sftp Connect: hostname port: [NSNumber numberWithInt: port]];

Sometimes it's not connecting with my server. but my server is available for use. if this (success = NO) happens once in my application, i can't able to connect with server even after multiple retries. But i can able to connect with server after restarting the app. Can anyone provide the solution to accomplish the problem and connect with sftp server without interruption/restarting the app?

asked Jul 15 '14 at 13:55

hubTeam's gravatar image

hubTeam
18116

Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×98
×94
×8
×6

Asked: Jul 15 '14 at 13:55

Seen: 730 times

Last updated: Jul 15 '14 at 13:55

powered by OSQA