Mercurial > hg > Members > nobuyasu > tightVNCProxy
view src/myVncProxy/SendThread.java @ 191:b2f0cd0cff6c default tip
Added tag Version-1.0 for changeset 79046b4e5990
author | Yu Taninari <you@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 29 Nov 2011 15:52:44 +0900 |
parents | 37e287cfe7e0 |
children |
line wrap: on
line source
package myVncProxy; import java.net.Socket; import java.io.IOException; import java.io.OutputStream; public class SendThread implements Runnable { Socket sock; OutputStream out; byte b[]; SendThread(Socket _sock, byte _b[]){ sock = _sock; b = _b; } SendThread(OutputStream _out, byte _b[]){ out = _out; b = _b; } public void run() { try{ out.write(b, 0, b.length); // sock.getOutputStream().write(b, 0, b.length); }catch(IOException e){ } } }