master-nevi / UPnAtom

An open source Universal Plug and Play library with a focus on media streaming coordination using the UPnP A/V profile; written in Swift but for both Objective-C and Swift apps.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Interface enumeration fails on ATV 4 gen

GINNOV opened this issue · comments

file: GCDAsyncUDpSocket
line 1446

The matching of the currently in use network adapter fails the condition resulting in not making the binding possible when the code exist the call back.

It runs fine in the simulator as it leverages OSX network stack which seems to be compatible with that code.

The issue seems to have the root cause on this line:
func startExploring(forTypes types: [SSDPType], onInterface interface: String = "en0") -> EmptyResult {
assert(_multicastSocket == nil, "Socket is already open, stop it first!")

why the default parameter on the signature of the method?