Mercurial > 510Connectbot
comparison src/ch/ethz/ssh2/sftp/Packet.java @ 308:42b15aaa7ac7 ganymed
merge
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Wed, 30 Jul 2014 14:21:50 -0700 |
parents | 071eccdff8ea |
children |
comparison
equal
deleted
inserted
replaced
306:90e47d99ea54 | 308:42b15aaa7ac7 |
---|---|
49 * implement extensions, which can be vendor specific. | 49 * implement extensions, which can be vendor specific. |
50 */ | 50 */ |
51 public static final int SSH_FXP_EXTENDED_REPLY = 201; | 51 public static final int SSH_FXP_EXTENDED_REPLY = 201; |
52 | 52 |
53 public static String forName(int type) { | 53 public static String forName(int type) { |
54 switch(type) { | 54 switch (type) { |
55 case SSH_FXP_INIT: | 55 case SSH_FXP_INIT: |
56 return "SSH_FXP_INIT"; | 56 return "SSH_FXP_INIT"; |
57 | |
57 case SSH_FXP_VERSION: | 58 case SSH_FXP_VERSION: |
58 return "SSH_FXP_VERSION"; | 59 return "SSH_FXP_VERSION"; |
60 | |
59 case SSH_FXP_OPEN: | 61 case SSH_FXP_OPEN: |
60 return "SSH_FXP_OPEN"; | 62 return "SSH_FXP_OPEN"; |
63 | |
61 case SSH_FXP_CLOSE: | 64 case SSH_FXP_CLOSE: |
62 return "SSH_FXP_CLOSE"; | 65 return "SSH_FXP_CLOSE"; |
66 | |
63 case SSH_FXP_READ: | 67 case SSH_FXP_READ: |
64 return "SSH_FXP_READ"; | 68 return "SSH_FXP_READ"; |
69 | |
65 case SSH_FXP_WRITE: | 70 case SSH_FXP_WRITE: |
66 return "SSH_FXP_WRITE"; | 71 return "SSH_FXP_WRITE"; |
72 | |
67 case SSH_FXP_LSTAT: | 73 case SSH_FXP_LSTAT: |
68 return "SSH_FXP_LSTAT"; | 74 return "SSH_FXP_LSTAT"; |
75 | |
69 case SSH_FXP_FSTAT: | 76 case SSH_FXP_FSTAT: |
70 return "SSH_FXP_FSTAT"; | 77 return "SSH_FXP_FSTAT"; |
78 | |
71 case SSH_FXP_SETSTAT: | 79 case SSH_FXP_SETSTAT: |
72 return "SSH_FXP_SETSTAT"; | 80 return "SSH_FXP_SETSTAT"; |
81 | |
73 case SSH_FXP_FSETSTAT: | 82 case SSH_FXP_FSETSTAT: |
74 return "SSH_FXP_FSETSTAT"; | 83 return "SSH_FXP_FSETSTAT"; |
84 | |
75 case SSH_FXP_OPENDIR: | 85 case SSH_FXP_OPENDIR: |
76 return "SSH_FXP_OPENDIR"; | 86 return "SSH_FXP_OPENDIR"; |
87 | |
77 case SSH_FXP_READDIR: | 88 case SSH_FXP_READDIR: |
78 return "SSH_FXP_READDIR"; | 89 return "SSH_FXP_READDIR"; |
90 | |
79 case SSH_FXP_REMOVE: | 91 case SSH_FXP_REMOVE: |
80 return "SSH_FXP_REMOVE"; | 92 return "SSH_FXP_REMOVE"; |
93 | |
81 case SSH_FXP_MKDIR: | 94 case SSH_FXP_MKDIR: |
82 return "SSH_FXP_MKDIR"; | 95 return "SSH_FXP_MKDIR"; |
96 | |
83 case SSH_FXP_RMDIR: | 97 case SSH_FXP_RMDIR: |
84 return "SSH_FXP_RMDIR"; | 98 return "SSH_FXP_RMDIR"; |
99 | |
85 case SSH_FXP_REALPATH: | 100 case SSH_FXP_REALPATH: |
86 return "SSH_FXP_REALPATH"; | 101 return "SSH_FXP_REALPATH"; |
102 | |
87 case SSH_FXP_STAT: | 103 case SSH_FXP_STAT: |
88 return "SSH_FXP_STAT"; | 104 return "SSH_FXP_STAT"; |
105 | |
89 case SSH_FXP_RENAME: | 106 case SSH_FXP_RENAME: |
90 return "SSH_FXP_RENAME"; | 107 return "SSH_FXP_RENAME"; |
108 | |
91 case SSH_FXP_READLINK: | 109 case SSH_FXP_READLINK: |
92 return "SSH_FXP_READLINK"; | 110 return "SSH_FXP_READLINK"; |
111 | |
93 case SSH_FXP_SYMLINK: | 112 case SSH_FXP_SYMLINK: |
94 return "SSH_FXP_SYMLINK"; | 113 return "SSH_FXP_SYMLINK"; |
114 | |
95 case SSH_FXP_STATUS: | 115 case SSH_FXP_STATUS: |
96 return "SSH_FXP_STATUS"; | 116 return "SSH_FXP_STATUS"; |
117 | |
97 case SSH_FXP_HANDLE: | 118 case SSH_FXP_HANDLE: |
98 return "SSH_FXP_HANDLE"; | 119 return "SSH_FXP_HANDLE"; |
120 | |
99 case SSH_FXP_DATA: | 121 case SSH_FXP_DATA: |
100 return "SSH_FXP_DATA"; | 122 return "SSH_FXP_DATA"; |
123 | |
101 case SSH_FXP_NAME: | 124 case SSH_FXP_NAME: |
102 return "SSH_FXP_NAME"; | 125 return "SSH_FXP_NAME"; |
126 | |
103 case SSH_FXP_ATTRS: | 127 case SSH_FXP_ATTRS: |
104 return "SSH_FXP_ATTRS"; | 128 return "SSH_FXP_ATTRS"; |
129 | |
105 case SSH_FXP_EXTENDED: | 130 case SSH_FXP_EXTENDED: |
106 return "SSH_FXP_EXTENDED"; | 131 return "SSH_FXP_EXTENDED"; |
132 | |
107 case SSH_FXP_EXTENDED_REPLY: | 133 case SSH_FXP_EXTENDED_REPLY: |
108 return "SSH_FXP_EXTENDED_REPLY"; | 134 return "SSH_FXP_EXTENDED_REPLY"; |
109 } | 135 } |
136 | |
110 return null; | 137 return null; |
111 } | 138 } |
112 } | 139 } |