Search Unity

Can clients check if all data has been recieved from server?

Discussion in 'Scripting' started by aegget_, Apr 4, 2014.

  1. aegget_

    aegget_

    Joined:
    Oct 30, 2012
    Posts:
    33
    Hello!

    I was googling around but found no answer to this, I have my server procedurally generating the level with network instantiate and I was wondering if I can check on the clients after having connected, if if all data has been received from server, before continuing with spawning etc?

    Oh and I'm using unitys own network api

    Thanks!
     
  2. Patico

    Patico

    Joined:
    May 21, 2013
    Posts:
    886
    In my opinion it depends on the way that you use to generate data. For example, if you generate a xml you can check if it corresponds to it's schema. Or you can add a hash code to the end of data and check it on the client, in case of you use some other data format.
     
  3. aegget_

    aegget_

    Joined:
    Oct 30, 2012
    Posts:
    33
    thanks :)