private void transmit(Packet packet){
  byte[] data=packet.data;
  if (packet.offset > 0) {
    System.arraycopy(data,packet.offset,data=new byte[packet.length],0,packet.length);
  }
  stats.numBytes+=packet.length;
  stats.numPackets++;
  try {
    datagramConnection.send(remoteAddress,remotePort,data);
    RtpSource s=rtcpSession.getMySource();
    s.activeSender=true;
    rtcpSession.timeOfLastRTPSent=rtcpSession.currentTime();
    rtcpSession.packetCount++;
    rtcpSession.octetCount+=data.length;
  }
 catch (  IOException e) {
    e.printStackTrace();
  }
}

private void transmit ( Packet packet ) { byte [ ] data = packet . data ; if ( packet . offset > 0 ) { System . arraycopy ( data , packet . offset , data = new byte [ packet . length ] , 0 , packet . length ) ; } stats . numBytes += packet . length ; stats . numPackets ++ ; try { datagramConnection . send ( remoteAddress , remotePort , data ) ; RtpSource s = rtcpSession . getMySource ( ) ; s . activeSender = true ; rtcpSession . timeOfLastRTPSent = rtcpSession . currentTime ( ) ; rtcpSession . packetCount ++ ; rtcpSession . octetCount += data . length ; } catch ( IOException e ) { e . printStackTrace ( ) ; } }
transmit a rtcp compound packet to the remote destination
