[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Datagram sockets: SO_BROADCAST
From: |
Dr. Torsten Rupp |
Subject: |
Datagram sockets: SO_BROADCAST |
Date: |
Mon, 21 Jul 2003 11:51:15 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3a) Gecko/20021212 |
Dear Classpath members,
it seems the behaviour of the Classpath implementaiton of datagram
sockets and sending broadcast messages is different from the
implementation in the Sun JDK API. I detected that the Sun
implementation set the socket option SO_BROADCAST for a datagram
socket by default. Thus a broadcast message can be send via
DatagramSocket.send(). With the current Classpath implementation
I get an error code "permission denied" (after some tries, because
all errors during a send()-call are mapped to an "internal error
only" - which is not very useful). By adding
setsockopt(...,SO_BROADCASST,...) in the function _javanet_create()
is seems to run. Is this modification ok?
Sincerely,
Torsten
- Datagram sockets: SO_BROADCAST,
Dr. Torsten Rupp <=