view src/treeVnc/SendThread.java @ 62:b2492abdae2a Version1.0 tip

Added tag TreeVNC_version1.0 for changeset 318ec7415073
author Taninari YU <you@cr.ie.u-ryukyu.ac.jp>
date Sun, 12 Aug 2012 22:13:39 +0900
parents 578ea14c95e9
children
line wrap: on
line source

package treeVnc;
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){
			
		}
	}
}