Quantcast
Channel: Multiplayer
Viewing all articles
Browse latest Browse all 16796

How can you tell if there exists a network connection of any kind ?

$
0
0
To be more specific, how can one be sure to use the methods of classes like Network (Connect, InitializeServer, etc ) when there is no LAN, Wifi or ethernet connection ?

In this case (where no connection is available on the target device) nasty errors occur when trying to Initialize a server or to poll for a host list.

The more general question would be how can one manage in code this type of situation ?

Try catch statements don't help because for example Network.Connect()...

How can you tell if there exists a network connection of any kind ?

Viewing all articles
Browse latest Browse all 16796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>