Mercurial > 510Connectbot
changeset 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 | c56032728742 |
children | 8181cb01c64d |
files | src/com/five_ten_sg/connectbot/transport/TN5250.java src/de/mud/terminal/vt320.java src/org/tn5250j/framework/tn5250/tnvt.java |
diffstat | 3 files changed, 7 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/src/com/five_ten_sg/connectbot/transport/TN5250.java Fri Jun 13 19:07:34 2014 -0700 +++ b/src/com/five_ten_sg/connectbot/transport/TN5250.java Fri Jun 13 19:13:05 2014 -0700 @@ -152,7 +152,7 @@ if (mnemonics.containsKey(keyCode)) { String s = mnemonics.get(keyCode); if (s != "") { - if (bridge.monitor != null) bridge.monitor.hostData(s); + if (bridge.monitor != null) bridge.monitor.hostData(s.getBytes()); screen52.sendKeys(s); } }
--- a/src/de/mud/terminal/vt320.java Fri Jun 13 19:07:34 2014 -0700 +++ b/src/de/mud/terminal/vt320.java Fri Jun 13 19:13:05 2014 -0700 @@ -72,7 +72,7 @@ // ignore line and column, just send the bytes to the host. int n = d.length; byte [] b = new byte [n]; - for (int i=0; i<n; i++) b[i] = c[i] & 0x00ff; + for (int i=0; i<n; i++) b[i] = d[i] & 0x00ff; write(b); }
--- a/src/org/tn5250j/framework/tn5250/tnvt.java Fri Jun 13 19:07:34 2014 -0700 +++ b/src/org/tn5250j/framework/tn5250/tnvt.java Fri Jun 13 19:13:05 2014 -0700 @@ -80,17 +80,19 @@ import javax.net.ssl.SSLSocket; +import android.content.Intent; +import android.net.Uri; +import android.util.Log; + import com.five_ten_sg.connectbot.R; import com.five_ten_sg.connectbot.service.TerminalBridge; import com.five_ten_sg.connectbot.service.TerminalManager; -import android.content.Intent; -import android.net.Uri; +import de.mud.terminal.vt320; import org.tn5250j.TN5250jConstants; import org.tn5250j.encoding.CharMappings; import org.tn5250j.encoding.ICodePage; import org.tn5250j.framework.transport.SocketConnector; -import android.util.Log; public final class tnvt implements Runnable { @@ -258,13 +260,6 @@ Log.i(TAG," socks set "); } - public final boolean connect() { - - return connect(hostname, port); - - } - - public final boolean connect(String hostname, int port, vt320 buffer) { try { this.hostname = hostname;