synchronized(RECEIVE_LOCK) { receive0(packet); }
synchronized(RECEIVE_LOCK) { ByteBuffer buf = ByteBuffer.wrap(packet.getData(), packet.getOffset(), packet.getLength()); SocketAddress addr = null; while (true) { try { addr = channel.receive(buf); break; } catch (SocketTimeoutException ste) { throw ste; } catch (InterruptedIOException iioe) {  } } if (addr != null) packet.setSocketAddress(addr); packet.setLength(buf.position() - packet.getOffset()); }
  protected void receive(DatagramPacket packet)    throws IOException  {      synchronized(RECEIVE_LOCK)        {        receive0(packet);		        }  }