private void transmit(Packet packet) throws NetworkException {
  byte[] data=packet.mData;
  if (packet.mOffset > 0) {
    System.arraycopy(data,packet.mOffset,data=new byte[packet.mLength],0,packet.mLength);
  }
  stats.numBytes+=packet.mLength;
  stats.numPackets++;
  if (data == null) {
    return;
  }
  datagramConnection.send(remoteAddress,remotePort,data);
  RtpSource s=rtcpSession.getMySource();
  s.activeSender=true;
  rtcpSession.timeOfLastRTPSent=rtcpSession.currentTime();
  rtcpSession.packetCount++;
  rtcpSession.octetCount+=data.length;
}

private void transmit ( Packet packet ) throws NetworkException { byte [ ] data = packet . mData ; if ( packet . mOffset > 0 ) { System . arraycopy ( data , packet . mOffset , data = new byte [ packet . mLength ] , 0 , packet . mLength ) ; } stats . numBytes += packet . mLength ; stats . numPackets ++ ; if ( data == null ) { return ; } datagramConnection . send ( remoteAddress , remotePort , data ) ; RtpSource s = rtcpSession . getMySource ( ) ; s . activeSender = true ; rtcpSession . timeOfLastRTPSent = rtcpSession . currentTime ( ) ; rtcpSession . packetCount ++ ; rtcpSession . octetCount += data . length ; }
transmit a rtcp compound packet to the remote destination
