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