Changeset 777 for code/branches/FICN/src/network/dummyserver.cc
- Timestamp:
- Dec 31, 2007, 7:40:23 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/network/dummyserver.cc
r514 r777 1 1 /* 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 2 * ORXONOX - the hottest 3D action shooter ever to exist 3 * 4 * 5 * License notice: 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License 9 * as published by the Free Software Foundation; either version 2 10 * of the License, or (at your option) any later version. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with this program; if not, write to the Free Software 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20 * 21 * Author: 22 * Oliver Scheuss, (C) 2007 23 * Co-authors: 24 * ... 25 * 26 */ 27 27 28 28 // … … 31 31 // Author: Oliver Scheuss 32 32 33 34 33 #include <iostream> 35 34 #include <enet/enet.h> 35 36 #include "util/Sleep.h" 36 37 #include "ConnectionManager.h" 37 38 #include "PacketManager.h" 38 39 #include "ClientInformation.h" 39 40 #ifdef WIN3241 #include <windows.h>42 #define usleep(x) Sleep((x)/1000)43 #else44 #include <unistd.h>45 #endif46 47 40 48 41 using namespace network; … … 59 52 while(!quit){ 60 53 if(server.queueEmpty()) 61 // Warning: usleep(100) is Sleep(100/1000) = Sleep(0), which is nothing!54 // Warning: usleep(100) is Sleep(100/1000) = Sleep(0), which is nothing! 62 55 usleep(1); 63 56 else{
Note: See TracChangeset
for help on using the changeset viewer.