Package horizons :: Package network
[hide private]
[frames] | no frames]

Package network

source code

Submodules [hide private]

Classes [hide private]
  NetworkException
  SoftNetworkException
  PacketTooLarge
  NotConnected
  ClientException
  AlreadyConnected
  NotInGameLobby
  NotInServerMode
  UnableToConnect
  CommandError
  FatalError
Functions [hide private]
 
find_enet_module()
Return the enet module or None.
source code
Variables [hide private]
  enet = None
hash(x)
  __package__ = 'horizons.network'
Function Details [hide private]

find_enet_module()

source code 

Return the enet module or None.

We do not raise any errors here, because we still allow clients to play the singleplayer. If code requires the enet module, it should check if horizons.network.enet is not None.