Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Development > Archive::Development

Archive::Development Archive area for Development's posts that were moved here after an inactivity period of 90 days.

Reply
 
Thread Tools Display Modes
  #1  
Old 12-29-2002, 06:08 PM
Zafar
Sarnak
 
Join Date: Oct 2002
Posts: 50
Default Limiting World from running more than once.

I modified the world\net.cpp file to prevent more than once instance of world.exe from being loaded. This works fine under Win32, but under Linux it breaks compiles. I did this once for Linux, and a dozen times or so for Win32, but I cannot remember how to do it on Linux, and would like to implement it on both Win32 and Linux.

I added:
Quote:
HANDLE hMutex = CreateMutex(NULL, FALSE, "EQEmuWorld");
if (hMutex)
{
if (GetLastError() == ERROR_ALREADY_EXISTS)
{
cout << "EverQuest(TM) World Server Emulator is already running." << endl;
cout << "Please shutdown the existing copy, and reload." << endl;
exit (0);
}
}
right after:
Quote:
int main(int argc, char** argv)
{
Adding this code for zone servers would be bad, as it would limit you to running only one zone -- so if you use this code, don't use it for zones; only the world server.
Reply With Quote
  #2  
Old 01-02-2003, 04:41 PM
alkrun
Sarnak
 
Join Date: Jan 2002
Posts: 66
Default

My question is why would you want to do this? I specifically wrote code to allow you to run multiple world servers on a box with multiple IP addresses. I'm not knocking your code, just that I don't see why you would limit people to one world server, maybe they want to run a production and a development world on the same server?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 07:30 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3