comparison src/com/five_ten_sg/connectbot/transport/TN5250.java @ 121:477cca1e0c15

add more 5250 config items
author Carl Byington <carl@five-ten-sg.com>
date Wed, 18 Jun 2014 19:00:05 -0700
parents 77ac18bc1b2f
children 265a4733edcb
comparison
equal deleted inserted replaced
120:dcac61b6f2e6 121:477cca1e0c15
256 */ 256 */
257 @Override 257 @Override
258 public void connect() { 258 public void connect() {
259 screen52 = new Screen5250(); 259 screen52 = new Screen5250();
260 handler = new tnvt(screen52, true, false, bridge, manager); 260 handler = new tnvt(screen52, true, false, bridge, manager);
261 String encryption = host.getEncryption5250();
262
263 if ((encryption == null) || (encryption.length() == 0)) encryption = "NONE";
264
265 screen52.setVT(handler); 261 screen52.setVT(handler);
266 screen52.setBuffer(buffer); 262 screen52.setBuffer(buffer);
267 connected = handler.connect(host.getHostname(), host.getPort(), encryption, homeDirectory, buffer); 263 connected = handler.connect(host, homeDirectory, buffer);
268
269 if (connected) bridge.onConnected(); 264 if (connected) bridge.onConnected();
270 } 265 }
271 266
272 267
273 /** 268 /**