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

Method sendrecv

src/main/java/core/org/xbill/DNS/UDPClient.java:142–157  ·  view source on GitHub ↗
(SocketAddress local, SocketAddress remote, byte [] data, int max,
	 long endTime)

Source from the content-addressed store, hash-verified

140}
141
142static byte []
143sendrecv(SocketAddress local, SocketAddress remote, byte [] data, int max,
144 long endTime)
145throws IOException
146{
147 UDPClient client = new UDPClient(endTime);
148 try {
149 client.bind(local);
150 client.connect(remote);
151 client.send(data);
152 return client.recv(max);
153 }
154 finally {
155 client.cleanup();
156 }
157}
158
159static byte []
160sendrecv(SocketAddress addr, byte [] data, int max, long endTime)

Callers 1

sendMethod · 0.95

Calls 5

bindMethod · 0.95
connectMethod · 0.95
sendMethod · 0.95
recvMethod · 0.95
cleanupMethod · 0.80

Tested by

no test coverage detected