Hi,
  I'm a new user of jsch.  Looking at the sample code for ScpFrom, there
is the following code:

int c=checkAck(in); 
   if(c != 'C'){
   break;
  }

In most uses of checkAck() (checkAck(in) != 0) means error.  But what is
the significance of checking for the letter 'C'?  It looks like checkAck
reads the input stream and if it's not 0, 1, 2, or -1, then it could be
any arbitrary character.  What is the significance of the other values?

Thanks
Peter Kronenberg
Software Engineer
Technica Corp
The information contained in this transmission may contain privileged and 
confidential information. 
It is intended only for the use of the person(s) named above. 
If you are not the intended recipient, you are hereby notified that any review, 
dissemination, distribution or duplication of this communication is strictly 
prohibited. 
If you are not the intended recipient, please contact the sender by reply 
e-mail and destroy all copies of the original message. 
Technica Corporation does not represent this e-mail to be free from any virus, 
fault or defect and it is therefore the responsibility of the recipient to 
first scan it for viruses, faults and defects. 
To reply to our e-mail administrator directly, please send an e-mail to [EMAIL 
PROTECTED] Thank you.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
JSch-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to