# HG changeset patch # User e085711 # Date 1310116835 -32400 # Node ID 39741f18b4f2f37a601932ee35a52df99a2c795d # Parent a60ec7414931423ba64d71567ccf7d56abc45118 modify MyRfbProto.java. remove unnecessary method diff -r a60ec7414931 -r 39741f18b4f2 src/myVncProxy/MyRfbProto.java --- a/src/myVncProxy/MyRfbProto.java Fri Jul 08 18:07:07 2011 +0900 +++ b/src/myVncProxy/MyRfbProto.java Fri Jul 08 18:20:35 2011 +0900 @@ -252,21 +252,6 @@ os.write(initData); } - void sendData(byte b[]) { - try { - multicastqueue.put(b); - - /* - * // for(Socket cli : cliList){ // try{ // - * cli.getOutputStream().write(b, 0, b.length); // - * }catch(IOException e){ // // if socket closed // - * cliList.remove(cli); // } // } - */ - // System.out.println("cliSize="+cliSize()); - } catch (Exception e) { - } - } - void sendPngImage() { try { for (Socket cli : cliListTmp) { @@ -297,21 +282,13 @@ System.out.println("numBytesRead=" + numBytesRead); } - void bufResetSend(int size) throws IOException { - reset(); - int len = size; - if (available() < size) - len = available(); - byte buffer[] = new byte[len]; - readFully(buffer); - sendData(buffer); - } - void readSendData() throws IOException { byte buffer[] = new byte[dataLen]; readFully(buffer); reset(); - + multicastqueue.put(buffer); +/* + for (Socket cli : cliList) { try { OutputStream out = cli.getOutputStream(); @@ -322,8 +299,8 @@ } catch (Exception e) { } - } +*/ } void regiFramebufferUpdate() throws IOException {