comparison src/org/tn5250j/framework/tn5250/tnvt.java @ 71:7ae9b0c382ec tn5250

use 5250 encryption config entry
author Carl Byington <carl@five-ten-sg.com>
date Fri, 13 Jun 2014 19:13:05 -0700
parents 294435151b0c
children 33eb63352be5
comparison
equal deleted inserted replaced
70:c56032728742 71:7ae9b0c382ec
78 import java.util.concurrent.ArrayBlockingQueue; 78 import java.util.concurrent.ArrayBlockingQueue;
79 import java.util.concurrent.BlockingQueue; 79 import java.util.concurrent.BlockingQueue;
80 80
81 import javax.net.ssl.SSLSocket; 81 import javax.net.ssl.SSLSocket;
82 82
83 import android.content.Intent;
84 import android.net.Uri;
85 import android.util.Log;
86
83 import com.five_ten_sg.connectbot.R; 87 import com.five_ten_sg.connectbot.R;
84 import com.five_ten_sg.connectbot.service.TerminalBridge; 88 import com.five_ten_sg.connectbot.service.TerminalBridge;
85 import com.five_ten_sg.connectbot.service.TerminalManager; 89 import com.five_ten_sg.connectbot.service.TerminalManager;
86 import android.content.Intent; 90 import de.mud.terminal.vt320;
87 import android.net.Uri;
88 91
89 import org.tn5250j.TN5250jConstants; 92 import org.tn5250j.TN5250jConstants;
90 import org.tn5250j.encoding.CharMappings; 93 import org.tn5250j.encoding.CharMappings;
91 import org.tn5250j.encoding.ICodePage; 94 import org.tn5250j.encoding.ICodePage;
92 import org.tn5250j.framework.transport.SocketConnector; 95 import org.tn5250j.framework.transport.SocketConnector;
93 import android.util.Log;
94 96
95 97
96 public final class tnvt implements Runnable { 98 public final class tnvt implements Runnable {
97 private static final String TAG = "tnvt"; 99 private static final String TAG = "tnvt";
98 // negotiating commands 100 // negotiating commands
255 systemProperties.put("socksProxyPort", proxyPort); 257 systemProperties.put("socksProxyPort", proxyPort);
256 258
257 System.setProperties(systemProperties); 259 System.setProperties(systemProperties);
258 Log.i(TAG," socks set "); 260 Log.i(TAG," socks set ");
259 } 261 }
260
261 public final boolean connect() {
262
263 return connect(hostname, port);
264
265 }
266
267 262
268 public final boolean connect(String hostname, int port, vt320 buffer) { 263 public final boolean connect(String hostname, int port, vt320 buffer) {
269 try { 264 try {
270 this.hostname = hostname; 265 this.hostname = hostname;
271 this.port = port; 266 this.port = port;