MCPcopy Create free account
hub / github.com/0linlin0/CyberBox / run

Method run

Skay_Exp/src/tools/nc/NetcatServer.java:107–123  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

105 long startTime = System.currentTimeMillis();
106 Runnable runnable = new Runnable() {
107 @Override
108 public void run() {
109 String line = null;
110 while (true) {
111 try {
112 if (!((line = inFromClient.readLine()) != null)) break;
113 } catch (IOException e) {
114 e.printStackTrace();
115 }
116 System.out.println(line);
117// complete = true;
118 long endTime = System.currentTimeMillis();
119 if(endTime-startTime > 3000){
120 break;
121 }
122 }
123 }
124 };
125 Thread thread = new Thread(runnable);
126 thread.start();

Callers 1

callMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected