From owner-freebsd-questions@FreeBSD.ORG Thu Dec 17 19:00:42 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 759AE106566B for ; Thu, 17 Dec 2009 19:00:42 +0000 (UTC) (envelope-from dxnada@gmail.com) Received: from mail-gx0-f170.google.com (mail-gx0-f170.google.com [209.85.217.170]) by mx1.freebsd.org (Postfix) with ESMTP id 3626C8FC3B for ; Thu, 17 Dec 2009 19:00:41 +0000 (UTC) Received: by gxk10 with SMTP id 10so295556gxk.3 for ; Thu, 17 Dec 2009 11:00:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=NdNWIwU3EiByybOgjNv5MGL2/qjeMvv/9+v2hbIh4XM=; b=DADkCUCS8miRosR6RQkaXt+9eGpIt1PFZ2JY6j4aKYHrvCo0mqoPz3ZWw/mW0HquuU adAURudXE4b63CjQjYPr3v6Xp9FLm2WMqvGMKDzxnHO6WMVJsOnv1q6ahvEoSpdUsM+F sQnp79ifvn5TWQ3E9Mv64BrzAnGgkTtWnVPPU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=T2NDmPiDnQFBzcBsz8POkn3yoEoqEUaL276zxZOUSACS10DCHykEltm4gf/aEb0D/7 3/Whu+uQLNUiJrTORuDW+ekUH0TlWmRGK/xkK9OI4qTQsGWQFMXYIEWUMlJcIEa0gx3b NBj0+kUORRrKWoOWX0mRLrDtTeDaBNT0L40rY= MIME-Version: 1.0 Received: by 10.101.4.16 with SMTP id g16mr4576366ani.25.1261075524220; Thu, 17 Dec 2009 10:45:24 -0800 (PST) Date: Thu, 17 Dec 2009 12:45:24 -0600 Message-ID: From: Dex Nada To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Joining multiple Multicast Streams X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Dec 2009 19:00:42 -0000 Hi: I am writing an application that joins a multicast stream on a specific UDP port. But when I run more than one instance of the same application, the second instance complains that the port is already in use. For example if I join stream 229.10.10.133:2000 on one instance and 229.10.10..134:2000 on another instance, the second one fails to join - I can however join it if I kill the first instance. I have compiled that application with SOCKET_REUSE option, but I wonder if I need to enable/recompile-with any special multicast kernel option for this to work. I do not have this problem when I run this code on Linux (Ubuntu 9.10) but I really want to get this working on FreeBSD. Thanks in advance. -DxN