Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 17, 2010, 10:41:24 AM (15 years ago)
Author:
scheusso
Message:

network is now multithreaded again
further testing needed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/network5/src/libraries/network/NetworkPrereqs.h

    r7759 r7772  
    6464namespace orxonox
    6565{
    66   static const unsigned int GAMESTATEID_INITIAL     = static_cast<unsigned int>(-1);
    67   static const unsigned int CLIENTID_UNKNOWN        = static_cast<unsigned int>(-2);
     66  static const unsigned int GAMESTATEID_INITIAL       = static_cast<unsigned int>(-1);
     67  static const unsigned int CLIENTID_UNKNOWN          = static_cast<unsigned int>(-2);
    6868  extern const char* LAN_DISCOVERY_MESSAGE;
    6969  extern const char* LAN_DISCOVERY_ACK;
    70   static const unsigned int LAN_DISCOVERY_PORT      = 55557;
    71   static const unsigned int NETWORK_PEER_ID_SERVER = 0;
     70  static const unsigned int LAN_DISCOVERY_PORT        = 55557;
     71  static const unsigned int NETWORK_PEER_ID_SERVER    = 0;
     72  static const unsigned int NETWORK_CHANNEL_DEFAULT   = 0;
     73  static const unsigned int NETWORK_CHANNEL_RELIABLE  = 1;
    7274}
    7375
     
    98100// from ENet
    99101struct _ENetPeer;
    100 typedef _ENetPeer ENetPeer;
     102typedef _ENetPeer     ENetPeer;
    101103struct _ENetPacket;
    102 typedef _ENetPacket ENetPacket;
     104typedef _ENetPacket   ENetPacket;
    103105struct _ENetEvent;
    104 typedef _ENetEvent ENetEvent;
     106typedef _ENetEvent    ENetEvent;
    105107struct _ENetHost;
    106 typedef _ENetHost ENetHost;
     108typedef _ENetHost     ENetHost;
    107109struct _ENetAddress;
    108 typedef _ENetAddress ENetAddress;
     110typedef _ENetAddress  ENetAddress;
     111typedef uint8_t       ENetChannelID;
    109112
    110113namespace orxonox
     
    162165}
    163166
     167namespace boost
     168{
     169  class mutex;
     170  class thread;
     171}
     172
    164173#endif /* _NetworkPrereqs_H__ */
Note: See TracChangeset for help on using the changeset viewer.