view src/treeVnc/SendThread.java @ 6:01cdbc95142f default tip

update build.xml
author Yu Taninari <you@cr.ie.u-ryukyu.ac.jp>
date Mon, 30 Apr 2012 16:04:44 +0900
parents 756bfaf731f3
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){
			
		}
	}
}