Mercurial > hg > Members > you > TreeVNC
comparison src/treeVnc/VncCanvas.java @ 51:a14076dac503
add DataInputStream2.java
author | one |
---|---|
date | Sun, 06 May 2012 20:35:51 +0900 |
parents | f5690aa77f69 |
children | 923513c47b8f |
comparison
equal
deleted
inserted
replaced
50:f77309fa8a9c | 51:a14076dac503 |
---|---|
391 // | 391 // |
392 | 392 |
393 long count = 0; | 393 long count = 0; |
394 | 394 |
395 // new Thread(){public void run() {TestComet.main(null);}}.start(); | 395 // new Thread(){public void run() {TestComet.main(null);}}.start(); |
396 | 396 // insert into changeIs() |
397 | 397 |
398 while (true) { | 398 while (true) { |
399 // System.out.println("\ncount=" + count); | 399 // System.out.println("\ncount=" + count); |
400 count++; | 400 count++; |
401 | 401 |
404 /* | 404 /* |
405 * read Data from parents and send Data to Client. | 405 * read Data from parents and send Data to Client. |
406 * | 406 * |
407 */ | 407 */ |
408 //rfbc.sendDataCheckDelay(); | 408 //rfbc.sendDataCheckDelay(); |
409 rfbc.sendDataToClient(); | 409 rfbc.sendDataToClient(); |
410 rfbc.select(); | |
410 | 411 |
411 // rfb.printNumBytesRead(); | 412 // rfb.printNumBytesRead(); |
412 long bufSize = rfbc.getNumBytesRead(); | 413 long bufSize = rfbc.getNumBytesRead(); |
413 // Read message type from the server. | 414 // Read message type from the server. |
414 int msgType = rfbc.readServerMessageType(); | 415 int msgType = rfbc.readServerMessageType(); |