Author Topic: Problems with TNet on Apple devices.  (Read 6715 times)

Shifty Geezer

  • Full Member
  • ***
  • Thank You
  • -Given: 7
  • -Receive: 9
  • Posts: 226
    • View Profile
Problems with TNet on Apple devices.
« 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.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Problems with TNet on Apple devices.
« Reply #1 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.

Shifty Geezer

  • Full Member
  • ***
  • Thank You
  • -Given: 7
  • -Receive: 9
  • Posts: 226
    • View Profile
Re: Problems with TNet on Apple devices.
« Reply #2 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.