MCPcopy Index your code
hub / github.com/apache/groovy / run

Method run

benchmark/bench/echo.java:74–90  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

72 }
73
74 public void run() {
75 byte bytesIn[] = new byte[BUFFER_SIZE];
76 try {
77 Socket socketClient = ssAccepting.accept();
78 InputStream in = socketClient.getInputStream();
79 OutputStream out = socketClient.getOutputStream();
80 int iLength, iCount = 0;
81 while ((iLength = in.read(bytesIn)) != -1) {
82 out.write(bytesIn, 0, iLength);
83 out.flush();
84 iCount += iLength;
85 }
86 System.out.println("server processed " + iCount + " bytes");
87 } catch (Exception e) {
88 e.printStackTrace();
89 }
90 }
91}

Callers

nothing calls this directly

Calls 8

getOutputStreamMethod · 0.80
printStackTraceMethod · 0.80
acceptMethod · 0.65
readMethod · 0.65
writeMethod · 0.65
getInputStreamMethod · 0.45
flushMethod · 0.45
printlnMethod · 0.45

Tested by

no test coverage detected