Search Unity

[LLAPI] How to use 'BroadcastDiscovery'

Discussion in 'Multiplayer' started by Ghosthowl, Jul 15, 2015.

  1. Ghosthowl

    Ghosthowl

    Joined:
    Feb 2, 2014
    Posts:
    228
    I assume Broadcast discovery is a way of being able to broadcast servers on LAN for others to connect to easily. I am trying to figure out how to use this feature but I can't find any documentation on it.

    I am able to successfully start it with 'NetworkTransport.StartBroadcastDiscovery' but I do not see how to properly poll to get any new discoveries.

    I tried using 'NetworkTransport.GetBroadcastConnectionInfo' but it errors with:
    Code (csharp):
    1.  
    2. No diecovery message received
    3. UnityEngine.Networking.NetworkTransport:GetBroadcastConnectionMessage(Int32, Byte[], Int32, Int32&, Byte&)
    4.  
    Can any short guide be given to better understand how to use this?
     
  2. Ghosthowl

    Ghosthowl

    Joined:
    Feb 2, 2014
    Posts:
    228
    laurachen likes this.