Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 11, 2009, 4:06:31 PM (15 years ago)
Author:
rgrieder
Message:

Removed all enet and boost includes from header files in the network library.

  • Reduces dependencies
  • Minimises problems with windows.h
  • Speeds up the compiling process a little bit (probably negligible)
  • Also removes ugly WIN32_LEAN_AND_MEAN declarations before every enet.h include in the network library.

Removed windows.h header from util/Sleep.h by adding Sleep.cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/network/ClientConnection.h

    r2756 r2773  
    4444
    4545#include <string>
    46 #ifndef WIN32_LEAN_AND_MEAN
    47 #  define WIN32_LEAN_AND_MEAN
    48 #endif
    49 #define NOMINMAX // required to stop windows.h screwing up std::min definition
    50 #include <enet/enet.h>
    51 #include <boost/thread/recursive_mutex.hpp>
    5246#include "PacketBuffer.h"
    5347
     
    8478    bool isConnected(){return established;}
    8579  private:
     80    ClientConnection(const ClientConnection& copy); // not used
    8681    bool processData(ENetEvent *event);
    8782    // implementation of the listener
     
    9388    // enet stuff
    9489    ENetHost *client;
    95     ENetAddress serverAddress;
     90    ENetAddress *serverAddress;
    9691    // quit-variable (communication with threads)
    9792    bool quit;
     
    10095    ENetPeer *server;
    10196    boost::thread *receiverThread_;
    102 
    103     static boost::recursive_mutex enet_mutex_;
    104   };
     97};
    10598
    10699
Note: See TracChangeset for help on using the changeset viewer.