linphone-developers
[Top][All Lists]
Advanced

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

[Linphone-developers] ortp: using port used by other process


From: Petr Kuba
Subject: [Linphone-developers] ortp: using port used by other process
Date: Thu, 19 Mar 2009 13:36:38 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.8.1.2pre) Gecko/20070111 SeaMonkey/1.1

Hello,

We met the following problem with ortp in our application: if the local port we want to use is already used by some other process no error is reported. Therefore we do not hear any audio without being informed about the problem.

We believe that this is caused by the following line in the create_and_bind() function:

err = setsockopt (sock, SOL_SOCKET, SO_REUSEADDR,
                (SOCKET_OPTION_VALUE)&optval, sizeof (optval));

The create_and_bind() function is called from the rtp_session_set_local_addr() function.

We met this problem in ortp 0.13.1 (under Windows XP) but after quick check it looks like the same would happen with 0.15.0.

Could you explain us why SO_REUSEADDR option is used and suggest some way to detect problems? Our idea is to make use of SO_REUSEADDR configurable.

Thanks,
Petr


--
   Petr Kuba, Project Manager
   OptimSys, s.r.o
   address@hidden
   Tel: +420 541 143 065
   Fax: +420 541 143 066
   http://www.optimsys.cz




reply via email to

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