view src/myVncClient/SendThread.java @ 65:4225c2fd3e16

modify CuiMyVncClient.java
author e085711
date Fri, 05 Aug 2011 19:46:51 +0900
parents 49eed04b9b3b
children
line wrap: on
line source

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