comparison src/com/five_ten_sg/connectbot/transport/TN5250.java @ 23:cfcb8d9859a8 tn5250

adding tn5250 files
author Carl Byington <carl@five-ten-sg.com>
date Tue, 03 Jun 2014 11:37:06 -0700
parents b39bcf616a6f
children 017eeed8332c
comparison
equal deleted inserted replaced
22:e067ee54f638 23:cfcb8d9859a8
128 * session is started, must call back to {@link TerminalBridge#onConnected()}. 128 * session is started, must call back to {@link TerminalBridge#onConnected()}.
129 * After that call a session may be opened. 129 * After that call a session may be opened.
130 */ 130 */
131 @Override 131 @Override
132 public void connect() { 132 public void connect() {
133 try { 133 connected = handler.connect(host.getHostname(), host.getPort());
134 connected = handler.connect(host.getHostname(), host.getPort()); 134 if (connected) {
135 is = handler.bin; 135 is = handler.bin;
136 os = handler.bout; 136 os = handler.bout;
137 bridge.onConnected(); 137 bridge.onConnected();
138 }
139 catch (UnknownHostException e) {
140 Log.d(TAG, "IO Exception connecting to host", e);
141 }
142 catch (IOException e) {
143 Log.d(TAG, "IO Exception connecting to host", e);
144 } 138 }
145 } 139 }
146 140
147 141
148 /** 142 /**