Právě prohlížíš: sockets/main.h
Zpět do složkyStáhnout
  1. #include <iostream>
  2. #include <string>
  3. #include <sstream>
  4. #include <boost/asio.hpp>
  5. #include <boost/thread/thread.hpp>
  6. #include "client.h"
  7.  
  8.  
  9.  
  10. #if defined(__WIN32__) || defined(_WIN32) || defined(WIN32) || defined(__WINDOWS__) || defined(__TOS_WIN__)
  11.  
  12. #include <windows.h>
  13.  
  14. inline void delay( unsigned long ms )
  15. {
  16. Sleep( ms );
  17. }
  18.  
  19. #else /* presume POSIX */
  20.  
  21. #include <unistd.h>
  22.  
  23. inline void delay( unsigned long ms )
  24. {
  25. usleep( ms * 1000 );
  26. }
  27.  
  28. #endif
Parsed using GeSHi 1.0.8.11 at 0.007