Changeset 346 for code/branches/FICN/src/network/ClientConnection.cc
- Timestamp:
- Nov 29, 2007, 4:21:30 PM (18 years ago)
- 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
-
Property
svn:ignore
set to
-
code/branches/FICN/src/network/ClientConnection.cc
r337 r346 12 12 #include "ClientConnection.h" 13 13 14 // workaround for usleep(int) under windows 15 #ifdef WIN32 16 #include "winbase.h" 17 #endif 18 14 19 namespace network{ 15 20 16 boost::thread_group network_threads;21 static boost::thread_group network_threads; 17 22 18 23 ClientConnection::ClientConnection(int port, std::string address){ … … 34 39 bool ClientConnection::waitEstablished(int milisec){ 35 40 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 36 45 usleep(1000); 46 #endif 37 47 return established; 38 48 }
Note: See TracChangeset
for help on using the changeset viewer.