Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate if server discovery broadcast needs adjusting #9

Open
oddstr13 opened this issue Dec 8, 2021 · 0 comments
Open

Investigate if server discovery broadcast needs adjusting #9

oddstr13 opened this issue Dec 8, 2021 · 0 comments
Assignees

Comments

@oddstr13
Copy link
Member

oddstr13 commented Dec 8, 2021

This block of code has been changed in jellyfin-kodi due to platform specific issues.

MULTI_GROUP = ("<broadcast>", 7359)
MESSAGE = b"who is JellyfinServer?"
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
sock.settimeout(1.0) # This controls the socket.timeout exception
sock.setsockopt(socket.IPPROTO_IP, socket.IP_MULTICAST_TTL, 20)
sock.setsockopt(socket.SOL_SOCKET, socket.SO_BROADCAST, 1)
sock.setsockopt(socket.SOL_IP, socket.IP_MULTICAST_LOOP, 1)
sock.setsockopt(socket.IPPROTO_IP, socket.SO_REUSEADDR, 1)
LOG.debug("MultiGroup : %s", str(MULTI_GROUP))
LOG.debug("Sending UDP Data: %s", MESSAGE)

https://github.com/jellyfin/jellyfin-kodi/blob/2a8b06a911d6334339537ad0e988607448c44db9/jellyfin_kodi/jellyfin/connection_manager.py#L214-L219

@oddstr13 oddstr13 self-assigned this Dec 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant