throw new Error ("Not implemented");
if (!isOpen()) throw new ClosedChannelException();  try { DatagramPacket packet; int len = dst.remaining();  if (dst.hasArray()) { packet = new DatagramPacket (dst.array(), dst.arrayOffset() + dst.position(), len); } else { packet = new DatagramPacket (new byte [len], len); }  boolean completed = false;  try { begin(); socket.receive (packet); completed = true; } finally { end (completed); }  if (!dst.hasArray()) { dst.put (packet.getData(), packet.getOffset(), packet.getLength()); }   for (int i = 0; i < packet.getLength(); i++) { System.out.println ("Byte " + i + " has value " + packet.getData() [packet.getOffset() + i]); }  return packet.getSocketAddress(); } catch (SocketTimeoutException e) { return null; }
  public SocketAddress receive (ByteBuffer dst)    throws IOException  {    throw new Error ("Not implemented");  }