MCPcopy Create free account
hub / github.com/Q16G/memory-shell / writeFully

Method writeFully

src/main/java/org/example/Socks5Server.java:273–277  ·  view source on GitHub ↗
(SocketChannel channel, ByteBuffer buffer)

Source from the content-addressed store, hash-verified

271 }
272
273 private void writeFully(SocketChannel channel, ByteBuffer buffer) throws IOException {
274 while (buffer.hasRemaining()) {
275 channel.write(buffer);
276 }
277 }
278
279 private void closeQuietly(SocketChannel channel) {
280 try {

Callers 4

forwardMethod · 0.95
sendResponseMethod · 0.95

Calls 1

writeMethod · 0.80

Tested by

no test coverage detected