Mercurial > hg > Members > nobuyasu > tightVNCProxy
changeset 41:37e287cfe7e0
add class SendThread
author | e085711 |
---|---|
date | Mon, 06 Jun 2011 16:53:31 +0900 |
parents | dd1321b67f95 |
children | 03d2e5db2135 |
files | src/myVncProxy/SendThread.java |
diffstat | 1 files changed, 30 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/myVncProxy/SendThread.java Mon Jun 06 16:53:31 2011 +0900 @@ -0,0 +1,30 @@ +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){ + + } + } +}