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

Method recv

src/main/java/core/org/xbill/DNS/TCPClient.java:102–111  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

100}
101
102byte []
103recv() throws IOException {
104 byte [] buf = _recv(2);
105 int length = ((buf[0] & 0xFF) << 8) + (buf[1] & 0xFF);
106 byte [] data = _recv(length);
107 SocketChannel channel = (SocketChannel) key.channel();
108 verboseLog("TCP read", channel.socket().getLocalSocketAddress(),
109 channel.socket().getRemoteSocketAddress(), data);
110 return data;
111}
112
113static byte []
114sendrecv(SocketAddress local, SocketAddress remote, byte [] data, long endTime)

Callers 2

sendrecvMethod · 0.95
doxfrMethod · 0.45

Calls 2

_recvMethod · 0.95
verboseLogMethod · 0.80

Tested by

no test coverage detected