www.gusucode.com > 基于RTP语音压缩解压缩的发送与接收代码 > 基于RTP语音压缩解压缩的发送与接收代码/recv/receiver.cpp
/* Here's a small IPv4 example: it asks for a portbase and a destination and starts sending packets to that destination. */ /* include head file of ASR */ /* include head file of ASR */ #include "rtp.h" int checkRtpChan(); // // The main routine // int main(void) { // First, we'll ask for the necessary information rtpInitEnv( ); // initAsr( ); printf("\nReceiving packet.. \n"); for ( ; ; ) { rtpRecvPacket( ); checkRtpChan( ); RTPTime::Wait(RTPTime(0,200)); } rtpClose(); return 0; } int checkRtpChan() { return 0; }