public void sendByePacket(){
  Vector<RtcpSdesPacket> repvec=makereports();
  RtcpPacket[] packets=new RtcpPacket[repvec.size() + 1];
  repvec.copyInto(packets);
  int ssrc[]={rtcpSession.SSRC};
  RtcpByePacket rtcpbyepacket=new RtcpByePacket(ssrc,null);
  packets[packets.length - 1]=rtcpbyepacket;
  RtcpCompoundPacket cp=new RtcpCompoundPacket(packets);
  rtcpSession.getMySource().activeSender=false;
  transmit(cp);
}

public void sendByePacket ( ) { Vector < RtcpSdesPacket > repvec = makereports ( ) ; RtcpPacket [ ] packets = new RtcpPacket [ repvec . size ( ) + 1 ] ; repvec . copyInto ( packets ) ; int ssrc [ ] = { rtcpSession . SSRC } ; RtcpByePacket rtcpbyepacket = new RtcpByePacket ( ssrc , null ) ; packets [ packets . length - 1 ] = rtcpbyepacket ; RtcpCompoundPacket cp = new RtcpCompoundPacket ( packets ) ; rtcpSession . getMySource ( ) . activeSender = false ; transmit ( cp ) ; }
send a bye packet
