api change for packet based protocols (such as UDP and RTP)