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

Method Client

src/main/java/core/org/xbill/DNS/Client.java:20–37  ·  view source on GitHub ↗
(SelectableChannel channel, long endTime)

Source from the content-addressed store, hash-verified

18private static PacketLogger packetLogger = null;
19
20protected
21Client(SelectableChannel channel, long endTime) throws IOException {
22 boolean done = false;
23 Selector selector = null;
24 this.endTime = endTime;
25 try {
26 selector = Selector.open();
27 channel.configureBlocking(false);
28 key = channel.register(selector, SelectionKey.OP_READ);
29 done = true;
30 }
31 finally {
32 if (!done && selector != null)
33 selector.close();
34 if (!done)
35 channel.close();
36 }
37}
38
39static protected void
40blockUntil(SelectionKey key, long endTime) throws IOException {

Callers

nothing calls this directly

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected