Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 29, 2007, 4:21:30 PM (18 years ago)
Author:
rgrieder
Message:
  • adjusted the entire source to compile under windows visual studio too:
  • added some ugly conversions
  • changed some illegal code pieces (gcc however accepted it)
  • added a few files from reto's framework to evade linker errors (no more dynamic linking)
  • inserted some 'return true' to justify the return type
  • excluded the levelLoader in the orxonox.cc (couldn't make it work, parsing error)
  • wrote about 5 code #branches to compensate for missing usleep() under windows
Location:
code/branches/FICN
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FICN

    • Property svn:ignore set to
      FICN.sln
      FICN.ncb
      FICN.vcproj
      FICN.vcproj.RGRIEDERT60.rgrieder.user
      FICN.suo
      obj
  • code/branches/FICN/src/network/ClientConnection.cc

    r337 r346  
    1212#include "ClientConnection.h"
    1313
     14// workaround for usleep(int) under windows
     15#ifdef WIN32
     16#include "winbase.h"
     17#endif
     18
    1419namespace network{
    1520
    16   boost::thread_group network_threads;
     21  static boost::thread_group network_threads;
    1722
    1823  ClientConnection::ClientConnection(int port, std::string address){
     
    3439  bool ClientConnection::waitEstablished(int milisec){
    3540    for(int i=0; i<=milisec && !established; i++)
     41// under windows, use Sleep(milliseconds) instead of usleep(microseconds)
     42#ifdef WIN32
     43      Sleep(1);
     44#else
    3645      usleep(1000);
     46#endif
    3747    return established;
    3848  }
Note: See TracChangeset for help on using the changeset viewer.