MCPcopy Create free account
hub / github.com/DeNA/PacketProxy / run

Method run

src/main/java/core/packetproxy/DuplexAsync.java:93–108  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

91 clientFlowSourceThread = new Thread(new Runnable() {
92
93 public void run() {
94 try {
95
96 byte[] inputBuf = new byte[65536];
97 int inputLen = 0;
98 while ((inputLen = flow_controlled_client_input.read(inputBuf)) > 0) {
99
100 callOnClientChunkFlowControl(ArrayUtils.subarray(inputBuf, 0, inputLen));
101 }
102 flow_controlled_client_input.close();
103 closeOnClientChunkFlowControl();
104 } catch (Exception e) {
105
106 // errWithStackTrace(e);
107 }
108 }
109 });
110
111 serverFlowSourceThread = new Thread(new Runnable() {

Callers

nothing calls this directly

Calls 9

writeMethod · 0.65
readMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected