ktorio / ktor

Framework for quickly creating connected applications in Kotlin with minimal effort
https://ktor.io
Apache License 2.0
13.09k stars 1.07k forks source link

Ability to join a UDP socket to multicast group #922

Open psk7 opened 5 years ago

psk7 commented 5 years ago

Ktor Version

1.1.2

Ktor Engine Used(client or server and name)

ktor-network

JVM Version, Operating System and Relevant Context

openjdk 11.0.1, Windows, Linux

Feedback

We very lacks ability to join a UDP socket to multicast IPv6 group.

Please, consider adding this feature.

Hesamedin commented 5 years ago

I've recently assigned a task to implement Alarm Notification System which is based on UDP Multi cast. I decided to implement it based on Kotlin MP. So please: 1) Implement it a way that supports multi platform 2) In Mac OS, java lib returns IP6 instead of IP4. So, I have to add -Djava.net.preferIPv4Stack=true into JVM Param. It would be awesome to set a setting for that, too.

agent10 commented 4 years ago

Include iOS/tvOS platform to the list would be great.

oleg-larshin commented 4 years ago

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.