From owner-freebsd-java Thu Dec 14 2:40: 6 2000 From owner-freebsd-java@FreeBSD.ORG Thu Dec 14 02:40:02 2000 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from osku.suutari.iki.fi (osku.syncrontech.com [213.28.98.4]) by hub.freebsd.org (Postfix) with ESMTP id C49B137B400 for ; Thu, 14 Dec 2000 02:40:01 -0800 (PST) Received: from coffee (adsl-nat.syncrontech.com [213.28.98.3]) by osku.suutari.iki.fi (8.9.3/8.9.3) with SMTP id MAA96155 for ; Thu, 14 Dec 2000 12:39:59 +0200 (EET) (envelope-from ari@suutari.iki.fi) Message-ID: <002e01c065ba$3598c260$0e05a8c0@intranet.syncrontech.com> From: "Ari Suutari" To: Subject: Linux jdk & multicast Date: Thu, 14 Dec 2000 12:39:59 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, I just wrote a small multicast application, that works OK with FreeBSD beta 1.2.2 JDK. However, I have some production sites, which are running linux jdk 1.2.2 & FreeBSD 3.x-STABLE. Multicasting doesn't seem to work in this case very well, since linux jdk doesn't issue necessary setsockopt(.... SO_REUSEPORT....) to allow multiple applications to bind to same multicast port. What would be my best option to get this working ? 1) compile native jdk1.2.2 beta (and maybe shujit) on 3.x-STABLE 2) as 1 but upgrade to FreeBSD 4.2 3) hack linuxlator so that SO_REUSEADDR -> SO_REUSEADDR + SO_REUSEPORT In long term, I think that option #2 would be a good choice. In short term, if native jdk1.2.2 beta would work OK on 3.x I would probably use that, otherwise I think that I'll hack the kernel. Any opinions anyone ? Ari S. -- Ari Suutari Lemi, Finland To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message