"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 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?

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.

Brian
-- 
Brian Jones <[EMAIL PROTECTED]>


_______________________________________________
Classpath mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/classpath

Reply via email to