MCPcopy Create free account
hub / github.com/BombusMod/BombusMod / Utf8IOStream

Method Utf8IOStream

src/main/java/io/Utf8IOStream.java:85–99  ·  view source on GitHub ↗
(Socket connection)

Source from the content-addressed store, hash-verified

83 }
84//#endif
85 public Utf8IOStream(Socket connection) throws IOException {
86 this.connection = connection;
87 try {
88 connection.setTcpNoDelay(true);
89 //connection.setSoLinger(true, 300);
90 } catch (Exception e) {
91 e.printStackTrace();
92 }
93
94 inpStream = connection.getInputStream();
95 outStream = connection.getOutputStream();
96
97 length=0;
98 pbyte=0;
99 }
100
101 public Utf8IOStream(HttpProxyConnection proxy) throws IOException {
102 this.connection = proxy.getSocket();

Callers

nothing calls this directly

Calls 3

getSocketMethod · 0.80
openInputStreamMethod · 0.45
openOutputStreamMethod · 0.45

Tested by

no test coverage detected