Changeset 346 for code/branches/FICN/src/network/PacketBufferTestExt.cc
- Timestamp:
- Nov 29, 2007, 4:21:30 PM (16 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/PacketBufferTestExt.cc
r337 r346 7 7 8 8 using namespace network; 9 10 // workaround for usleep(int) under windows 11 #ifdef WIN32 12 #include "winbase.h" 13 #endif 9 14 10 15 … … 18 23 ENET_PACKET_FLAG_RELIABLE); 19 24 std::cout << i << ": pushing " << packet->data << std::endl; 20 test->push( packet);25 test->push((ENetEvent*)packet); 21 26 if(i==5) 27 // under windows, use Sleep(milliseconds) instead of usleep(microseconds) 28 #ifdef WIN32 29 Sleep(200); 30 #else 22 31 usleep(200000); 32 #endif 23 33 } 24 34 test->setClosed(true);
Note: See TracChangeset
for help on using the changeset viewer.