comparison src/ch/ethz/ssh2/Session.java @ 290:9ae4ed7bb523 ganymed

start conversion from trilead to ganymed
author Carl Byington <carl@five-ten-sg.com>
date Fri, 18 Jul 2014 20:34:21 -0700
parents db9b028016de
children 9c202256d102
comparison
equal deleted inserted replaced
289:d2ee20d9dff1 290:9ae4ed7bb523
139 * terminal width, pixels (e.g., 640) 139 * terminal width, pixels (e.g., 640)
140 * @param term_height_pixels 140 * @param term_height_pixels
141 * terminal height, pixels (e.g., 480) 141 * terminal height, pixels (e.g., 480)
142 * @throws IOException 142 * @throws IOException
143 */ 143 */
144 public void resizePTY(int term_width_characters, int term_height_characters, int term_width_pixels, int term_height_pixels) throws IOException {
145 requestWindowChange(term_width_characters, term_height_characters, term_width_pixels, term_height_pixels)
146 }
147
144 public void requestWindowChange(int term_width_characters, int term_height_characters, int term_width_pixels, 148 public void requestWindowChange(int term_width_characters, int term_height_characters, int term_width_pixels,
145 int term_height_pixels) throws IOException 149 int term_height_pixels) throws IOException
146 { 150 {
147 synchronized (this) 151 synchronized (this)
148 { 152 {
341 * @param agent object that implements the callbacks 345 * @param agent object that implements the callbacks
342 * 346 *
343 * @throws IOException in case of any problem or when the session is closed 347 * @throws IOException in case of any problem or when the session is closed
344 */ 348 */
345 349
346 public synchronized boolean requestAuthAgentForwarding(AuthAgentCallback agent) throws IOException { 350 public synchronized void requestAuthAgentForwarding(AuthAgentCallback agent) throws IOException {
347 synchronized (this) { 351 synchronized (this) {
348 /* 352 /*
349 * The following is just a nicer error, we would catch it anyway 353 * The following is just a nicer error, we would catch it anyway
350 * later in the channel code 354 * later in the channel code
351 */ 355 */
352 if (flag_closed) 356 if (flag_closed)
353 throw new IOException("This session is closed."); 357 throw new IOException("This session is closed.");
354 } 358 }
355 359
356 return cm.requestChannelAgentForwarding(cn, agent); 360 cm.requestChannelAgentForwarding(cn, agent);
357 } 361 }
358 362
359 public int getState() 363 public int getState()
360 { 364 {
361 return cn.getState(); 365 return cn.getState();