Tasharen Entertainment Forum

Support => TNet 3 Support => Topic started by: Shifty Geezer on February 13, 2016, 04:35:21 PM

Title: Problems with TNet on Apple devices.
Post by: Shifty Geezer on February 13, 2016, 04:35:21 PM
When creating a network instance of my game on PC or Android, it is discovered by all devices. Howveer, the same code run on OSX and iOS is undiscoverable by non-Apple devices. That is, a network game started on Mac or iPad can be seen by the Mac/iPad, but not Windows or Android.

Is there some setting needed to enable server visibility on Apple things?

Also ending the Host caused a crash on iOS saying something like unsafe thread closure and to use some other means to terminate a thread.
Title: Re: Problems with TNet on Apple devices.
Post by: ArenMook on February 14, 2016, 05:27:32 AM
It's because one is using multicasting and the other does not. UdpProtocol.useMulticasting should be force-set to the same thing on both platforms if you want them to see each other.
Title: Re: Problems with TNet on Apple devices.
Post by: Shifty Geezer on February 14, 2016, 05:47:25 AM
Thanks. What about the second issue? I guess it's new to iOS 9 and seems to be
          TNServerInstance.Stop ();
now being a bad way to terminate threads.
Title: Re: Problems with TNet on Apple devices.
Post by: phoenix on February 14, 2016, 10:52:24 PM
I had the same problem

http://www.tasharen.com/forum/index.php?topic=13779.0
http://www.tasharen.com/forum/index.php?topic=13809.0
http://www.tasharen.com/forum/index.php?topic=13714.0