Mercurial > hg > Members > nobuyasu > tightVNCClient
view src/myVncClient/waitreply.java @ 34:76f5994f2af2
modfy MyVncClient.java
author | e085711 |
---|---|
date | Thu, 07 Jul 2011 18:12:46 +0900 |
parents | a335a1038a23 |
children |
line wrap: on
line source
package myVncClient; import java.net.*; import java.io.*; public class waitreply extends Thread { echoClient echo; Socket clientSocket = null; ServerSocket echoServer=null; boolean mainFlag; waitreply(echoClient _echo){ echo = _echo; } public void run(){ while(true){ try { echoServer = new ServerSocket(10001 + Integer.parseInt(echoClient.value.treenum)); } catch (IOException e) { System.out.println(e); } try { clientSocket = echoServer.accept(); if(clientSocket != null){ MyVncClient.main(clientSocket); //echo.Interruption(clientSocket); } }catch (IOException e){ System.out.println(e); } /* try { Thread.sleep(100); } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); } */ } } }