~ubuntu-branches/ubuntu/precise/primrose/precise

« back to all changes in this revision

Viewing changes to tilePlacementGames/game1/gameSource/networkInterface.h

  • Committer: Bazaar Package Importer
  • Author(s): Paul Wise
  • Date: 2009-04-06 19:26:56 UTC
  • Revision ID: james.westby@ubuntu.com-20090406192656-cri7503gebyvfl8t
Tags: upstream-5+dfsg1
ImportĀ upstreamĀ versionĀ 5+dfsg1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// interface for making sure network is up
 
2
 
 
3
// used on iPhone to ensure connectivity before making a socket request... 
 
4
// does nothing on always-networked platforms
 
5
 
 
6
 
 
7
// true for always-on platforms
 
8
//  makeSureNetworkIsUp can be skipped on those platforms
 
9
char isNetworkAlwaysOn();
 
10
 
 
11
 
 
12
 
 
13
 
 
14
// makes sure the network is up, and tries to bring it up if it is not
 
15
// uses inTestURL to check reachability
 
16
 
 
17
// note that this call might block
 
18
char makeSureNetworkIsUp( char *inTestURL );