[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Linphone-developers] oRTP test program

From: d99mara
Subject: [Linphone-developers] oRTP test program
Date: Tue, 18 Nov 2003 17:40:42 +0100
User-agent: Internet Messaging Program (IMP) 3.2.1

I have written a simple test program for oRTP but I can't make it work. When I 
call the function tp_session_recv_with_ts() it does not read any data (rlen=0) 
and nor does it block. What have I done wrong? 
The program looks like this: 
  RtpSession *rtp_session = NULL; 
  int have_more = 0; 
  int wlen = 0; 
  int rlen = 0; 
  char wbuffer[100]; 
  char rbuffer[100]; 
  strcpy(wbuffer, argv[1]); // a text message 
  rbuffer[0] = '\0'; 
  //ortp_set_debug_file(NULL, stdout); 
  rtp_session = rtp_session_new(RTP_SESSION_SENDRECV); 
  rtp_session_set_blocking_mode(rtp_session, 1); 
  rtp_session_set_local_addr(rtp_session, "", 4000); 
  rtp_session_set_remote_addr(rtp_session, "", 4000); 
  wlen = rtp_session_send_with_ts(rtp_session, wbuffer, strlen(wbuffer)+1, 0); 
  rlen = rtp_session_recv_with_ts(rtp_session, rbuffer, sizeof(rbuffer), 0, 

This mail sent through IMP:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]