Re: Datagram sockets: SO_BROADCAST

2003-07-22 Thread Dr. Torsten Rupp
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

Re: Datagram sockets: SO_BROADCAST

2003-07-22 Thread Dr. Torsten Rupp
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.

Datagram sockets: SO_BROADCAST

2003-07-21 Thread Dr. Torsten Rupp
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.

Re: Datagram sockets: SO_BROADCAST

2003-07-21 Thread Mark Wielaard
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

Re: Datagram sockets: SO_BROADCAST

2003-07-21 Thread Brian Jones
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