Dear Brian,
I think you can call _javanet_set_option for the datagram case in
_javanet_create(), however you need to add the SO_BROADCAST case and
link up the setBroadcast to it in Java.
I added such a call in my copy here. I will commit the changes soon.
Sincerely,
Torsten
Dear Mark,
The 1.4 API doc for java.net.SocketOptions indicates that SO_BROADCAST
is set by default for DatagramSockets.
This also seems to be what libgcj does.
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.
Hi,
On Mon, 2003-07-21 at 11:51, Dr. Torsten Rupp wrote:By adding
setsockopt(...,SO_BROADCASST,...) in the function _javanet_create()
is seems to run. Is this modification ok?
The 1.4 API doc for java.net.SocketOptions indicates that SO_BROADCAST
is set by default for DatagramSockets.
This
Dr. Torsten Rupp [EMAIL PROTECTED] writes:
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
5 matches
Mail list logo