From owner-freebsd-java Tue Apr 28 11:01:53 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA18924 for freebsd-java-outgoing; Tue, 28 Apr 1998 11:01:53 -0700 (PDT) (envelope-from owner-freebsd-java@FreeBSD.ORG) Received: from hen.scotland.net (hen.scotland.net [194.247.65.129]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA18916 for ; Tue, 28 Apr 1998 11:01:46 -0700 (PDT) (envelope-from freebsd@timog.prestel.co.uk) Received: from [148.176.237.113] (helo=timog.prestel.co.uk) by hen.scotland.net with esmtp (Exim 1.90 #5) for freebsd-java@freebsd.org id 0yUEh7-0001G0-00; Tue, 28 Apr 1998 19:01:30 +0100 Received: (qmail 888 invoked by uid 1002); 28 Apr 1998 08:25:50 -0000 Message-ID: <19980428092550.40324@timog.prestel.co.uk> Date: Tue, 28 Apr 1998 09:25:50 +0100 From: Timo Geusch To: freebsd-java@FreeBSD.ORG Subject: Broadcast Datagram socket problem (bug?) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.89.1i Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Well, I just found a reproducible problem with Sockets in general (although it is only showing up on DatagramSockets at the moment - I did not check with normal Sockets). The problem is that sending a datagram to the network or to the broadcast address will throw a Java.io.IOException. Sending the datagram to a specific box works fine, but as soon as it is sent to the broadcast address it fails. A quickly hacked C program that did the same operation convinced me that the SO_BROADCAST option was not enabled. Checking the same piece of Java code on the other available platforms revealed an interesting hiccup: - Slowlaris/SPARC: Broadcasts fine. Original SUN JDK, of course. - Windoze 95 & NT: Same. Original SUN JDK, too. - Linux, 1.1.5-v6: Broadcasts, too. Grrrr. - DIGITAL UNIX JDK: Exception, no broadcast. - FreeBSD 2.2.6 & JDK 2-25: Exception, no broadcast. Now for the interesting part: to my best knowledge, DIGITAL UNIX is also BSD- derived, which makes me think that they also forgot to enable SO_BROADCAST. Is there any chance that somebody could (a) either fix that problem as I don't have access to the JDK source at the moment or (b) give me some pointers where I have to look in the source so I can go and fix it myself? After getting the JDK source license, of course. TIA, Timo To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message