(byte [] data)
| 108 | } |
| 109 | |
| 110 | void |
| 111 | send(byte [] data) throws IOException { |
| 112 | DatagramChannel channel = (DatagramChannel) key.channel(); |
| 113 | verboseLog("UDP write", channel.socket().getLocalSocketAddress(), |
| 114 | channel.socket().getRemoteSocketAddress(), data); |
| 115 | channel.write(ByteBuffer.wrap(data)); |
| 116 | } |
| 117 | |
| 118 | byte [] |
| 119 | recv(int max) throws IOException { |
no test coverage detected