Mercurial > 510Connectbot
comparison src/org/tn5250j/framework/tn5250/tnvt.java @ 91:33eb63352be5
remove 5250 configuration
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Mon, 16 Jun 2014 16:17:48 -0700 |
parents | 7ae9b0c382ec |
children | 5e52fa030308 eda03b809f48 |
comparison
equal
deleted
inserted
replaced
90:3f587bd647a5 | 91:33eb63352be5 |
---|---|
215 public String getHostName() { | 215 public String getHostName() { |
216 | 216 |
217 return hostname; | 217 return hostname; |
218 } | 218 } |
219 | 219 |
220 public void setSSLType(String type) { | |
221 sslType = type; | |
222 } | |
223 | |
224 public void setDeviceName(String name) { | 220 public void setDeviceName(String name) { |
225 devName = name; | 221 devName = name; |
226 } | 222 } |
227 | 223 |
228 public String getDeviceName() { | 224 public String getDeviceName() { |
258 | 254 |
259 System.setProperties(systemProperties); | 255 System.setProperties(systemProperties); |
260 Log.i(TAG," socks set "); | 256 Log.i(TAG," socks set "); |
261 } | 257 } |
262 | 258 |
263 public final boolean connect(String hostname, int port, vt320 buffer) { | 259 public final boolean connect(String hostname, int port, String encryption, String homeDirectory, vt320 buffer) { |
264 try { | 260 try { |
265 this.hostname = hostname; | 261 this.hostname = hostname; |
266 this.port = port; | 262 this.port = port; |
267 | 263 |
268 try { | 264 try { |
271 } catch (Exception exc) { | 267 } catch (Exception exc) { |
272 Log.w(TAG,"setStatus(ON) " + exc.getMessage()); | 268 Log.w(TAG,"setStatus(ON) " + exc.getMessage()); |
273 } | 269 } |
274 | 270 |
275 SocketConnector sc = new SocketConnector(); | 271 SocketConnector sc = new SocketConnector(); |
276 if (sslType != null) sc.setSSLType(sslType); | 272 sock = sc.createSocket(hostname, port, encryption, homeDirectory, bridge, manager); |
277 sock = sc.createSocket(hostname, port, bridge, manager); | |
278 | 273 |
279 if (sock == null) { | 274 if (sock == null) { |
280 Log.w(TAG,"I did not get a socket"); | 275 Log.w(TAG,"I did not get a socket"); |
281 disconnect(); | 276 disconnect(); |
282 return false; | 277 return false; |