Mailing Lists: Apple Mailing Lists

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

Re: Cannot join MulticastSocket



While I can't directly say what's wrong, I do know that there's a
third-party Java implementation of Rendezvous (which also uses broadcasts)
that is working for me.

Might be worth it to checkout the JavaRendezvous source and see what they're
doing:

http://www.strangeberry.com/java_rendevous.htm

It's not a lot of code.

- Gary

On 7/8/03 1:52 AM, "Markus Jostock" <email@hidden> wrote:

> 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.

Server Side Software
5614 8th Ave NE
Seattle, WA 98105
Voice: (206) 525-4786
Fax: (413) 683-2973
Email: email@hidden
_______________________________________________
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.

References: 
 >Cannot join MulticastSocket (From: Markus Jostock <email@hidden>)



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.