comparison src/org/tn5250j/framework/tn5250/tnvt.java @ 37:0395ca628303 tn5250

start tn5250 integration
author Carl Byington <carl@five-ten-sg.com>
date Tue, 10 Jun 2014 16:14:36 -0700
parents b086dd794dba
children 7ac846a07ed4
comparison
equal deleted inserted replaced
36:bcadd92f5e0a 37:0395ca628303
264 264
265 } 265 }
266 266
267 267
268 public final boolean connect(String hostname, int port) { 268 public final boolean connect(String hostname, int port) {
269
270 //// We will now see if there are any bypass signon parameters to be
271 //// processed. The system properties override these parameters so
272 //// have precidence if specified.
273 //Properties props = controller.getConnectionProperties();
274 //if (user == null && props.containsKey("SESSION_CONNECT_USER")) {
275 // user = props.getProperty("SESSION_CONNECT_USER");
276 // Log.i(TAG," user -> " + user + " " + controller.getSessionName());
277 // if (props.containsKey("SESSION_CONNECT_PASSWORD"))
278 // password = props.getProperty("SESSION_CONNECT_PASSWORD");
279 // if (props.containsKey("SESSION_CONNECT_LIBRARY"))
280 // library = props.getProperty("SESSION_CONNECT_LIBRARY");
281 // if (props.containsKey("SESSION_CONNECT_MENU"))
282 // initialMenu = props.getProperty("SESSION_CONNECT_MENU");
283 // if (props.containsKey("SESSION_CONNECT_PROGRAM"))
284 // program = props.getProperty("SESSION_CONNECT_PROGRAM");
285 //}
286
287 try { 269 try {
288 this.hostname = hostname; 270 this.hostname = hostname;
289 this.port = port; 271 this.port = port;
290 272
291 try { 273 try {
293 ScreenOIA.OIA_LEVEL_INPUT_INHIBITED,"X - Connecting"); 275 ScreenOIA.OIA_LEVEL_INPUT_INHIBITED,"X - Connecting");
294 } catch (Exception exc) { 276 } catch (Exception exc) {
295 Log.w(TAG,"setStatus(ON) " + exc.getMessage()); 277 Log.w(TAG,"setStatus(ON) " + exc.getMessage());
296 } 278 }
297 279
298 // sock = new Socket(s, port);
299 //smk - For SSL compability
300 SocketConnector sc = new SocketConnector(); 280 SocketConnector sc = new SocketConnector();
301 if (sslType != null) sc.setSSLType(sslType); 281 if (sslType != null) sc.setSSLType(sslType);
302 sock = sc.createSocket(hostname, port, bridge, manager); 282 sock = sc.createSocket(hostname, port, bridge, manager);
303 283
304 if (sock == null) { 284 if (sock == null) {