private void transmit(RtcpCompoundPacket packet) throws NetworkException {
  byte[] data=packet.mData;
  if (packet.mOffset > 0) {
    System.arraycopy(data,packet.mOffset,data=new byte[packet.mLength],0,packet.mLength);
  }
  mStats.numBytes+=packet.mLength;
  mStats.numPackets++;
  mRtcpSession.updateavgrtcpsize(packet.mLength);
  mRtcpSession.timeOfLastRTCPSent=mRtcpSession.currentTime();
  if (data == null) {
    return;
  }
  mDatagramConnection.send(mRemoteAddress,mRemotePort,data);
}

private void transmit ( RtcpCompoundPacket packet ) throws NetworkException { byte [ ] data = packet . mData ; if ( packet . mOffset > 0 ) { System . arraycopy ( data , packet . mOffset , data = new byte [ packet . mLength ] , 0 , packet . mLength ) ; } mStats . numBytes += packet . mLength ; mStats . numPackets ++ ; mRtcpSession . updateavgrtcpsize ( packet . mLength ) ; mRtcpSession . timeOfLastRTCPSent = mRtcpSession . currentTime ( ) ; if ( data == null ) { return ; } mDatagramConnection . send ( mRemoteAddress , mRemotePort , data ) ; }
transmit a rtcp compound packet to the remote destination
