Mercurial > 510Connectbot
comparison src/com/five_ten_sg/connectbot/transport/AbsTransport.java @ 147:1350adb077b1
monitor key state tracking
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Sun, 22 Jun 2014 07:57:20 -0700 |
parents | 77ac18bc1b2f |
children | 69333ca1563c |
comparison
equal
deleted
inserted
replaced
146:8754f293f2fd | 147:1350adb077b1 |
---|---|
65 | 65 |
66 // terminal key listener sending to the host | 66 // terminal key listener sending to the host |
67 @Override | 67 @Override |
68 public void write(byte[] b) { | 68 public void write(byte[] b) { |
69 try { | 69 try { |
70 if (bridge.monitor != null) bridge.monitor.hostData(b); | |
71 | |
72 AbsTransport.this.write(b); | 70 AbsTransport.this.write(b); |
73 } | 71 } |
74 catch (IOException e) { | 72 catch (IOException e) { |
75 Log.e(TAG, "Problem writing outgoing data in vt320() thread", e); | 73 Log.e(TAG, "Problem writing outgoing data in vt320() thread", e); |
76 } | 74 } |
77 } | 75 } |
78 @Override | 76 @Override |
79 public void write(int b) { | 77 public void write(int b) { |
80 try { | 78 try { |
81 if (bridge.monitor != null) bridge.monitor.hostData(b); | |
82 | |
83 AbsTransport.this.write(b); | 79 AbsTransport.this.write(b); |
84 } | 80 } |
85 catch (IOException e) { | 81 catch (IOException e) { |
86 Log.e(TAG, "Problem writing outgoing data in vt320() thread", e); | 82 Log.e(TAG, "Problem writing outgoing data in vt320() thread", e); |
87 } | 83 } |