Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Cannot join MulticastSocket



Hello

We have a client/server application that uses broadcasts.
While everything works fine under Win and Linux, the software
fails to join a broadcast group under MacOsX (Java 1.4.1)
with the message "No buffer space available".

Do I need to set or reserve buffer space before joining a group?
Do I have to enable some environment settings before starting the application?
Maybe a bad broadcast address? (230.0.0.1:8888)

Some help would be gratefully appreciated.

Best regards, Markus


Code snipet:
============
multicastSocket = new MulticastSocket(broadcastPort); # broadcastPort = 8888
multicastSocket.joinGroup(broadcastAddress); # broadcastAddress = 230.0.0.1

Error message:
==============
com.eglutek.comms.EGluCommsException: Could not join multicast group for listening on IP address 230.0.0.1
Caused by: No buffer space available
at com.eglutek.comms.broadcast.BroadcastManagerImpl.start(Unknown Source)
at com.eglutek.molecule.Molecule.start(Unknown Source)
at com.eglutek.Start.main(Unknown Source)
Caused by: java.net.SocketException: No buffer space available
at java.net.PlainDatagramSocketV4Impl.join(Native Method)
at java.net.PlainDatagramSocketV4Impl.join(PlainDatagramSocketV4Impl.java:1 34)
at java.net.MulticastSocket.joinGroup(MulticastSocket.java:274)
... 3 more
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Be sure to read the FAQ http://developer.apple.com/java/faq/ before posting
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.