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

Method blockUntil

src/main/java/core/org/xbill/DNS/Client.java:39–49  ·  view source on GitHub ↗
(SelectionKey key, long endTime)

Source from the content-addressed store, hash-verified

37}
38
39static protected void
40blockUntil(SelectionKey key, long endTime) throws IOException {
41 long timeout = endTime - System.currentTimeMillis();
42 int nkeys = 0;
43 if (timeout > 0)
44 nkeys = key.selector().select(timeout);
45 else if (timeout == 0)
46 nkeys = key.selector().selectNow();
47 if (nkeys == 0)
48 throw new SocketTimeoutException();
49}
50
51static protected void
52verboseLog(String prefix, SocketAddress local, SocketAddress remote,

Callers 4

connectMethod · 0.80
sendMethod · 0.80
_recvMethod · 0.80
recvMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected