Skip to main content
Participant
May 21, 2020
Question

DatagramSocket and multicast

  • May 21, 2020
  • 1 reply
  • 303 views

Hi,

I utterly need to be able to bind to multicast IP address (ex: 239.255.250.250). How come it is still not available ?
It's not as if multicast was a new technology or something nobody uses... It's standard and it's simple when you can already handle UDP sockets.

Please, could you implement this feature ?

Thanks a lot.

Best regards,
Juju

 

 

    This topic has been closed for replies.

    1 reply

    Inspiring
    May 26, 2020

    what did you already try?
    have you tried the DatagramSocket class ?

    JujuRAuthor
    Participant
    June 7, 2020

    Hi,

     

    Yes I did try the DatagramSocket class but it will not allow  multicast IP address like 192.168.0.255 or  239.255.250.250.

    When I try to bound to these kind of IPs I get this error message:  Error #2002: Operation attempted on invalid socket.

     

    It would be very nice if  this feature was implemented. It must not be that hard.

     

    Regards,

    Juju

    Inspiring
    June 7, 2020

    you don't really say what you try to do exactly (discover things over LAN? game over UDP? etc.)

    and where (mobile? desktop?), and no code sample ...

    so yeah by default DatagramSocket will not support broadcast eg. "Sending data to a broadcast address is not supported"
    but it depends mainly on what you try to do, if you were trying to connect only AIR clients over LAN there are alternative that works
    at best you can extend the capabilities with small binary to relay that broadcast/multicast or even extend AIR with an ANE

    but you don;t bother take 5mn to gives details .... so good luck