logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Change for the repository - nwnx_vaultster

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Windows development
View previous topic :: View next topic  
Author Message
Mithreas



Joined: 09 May 2008
Posts: 24

PostPosted: Sun Feb 28, 2010 6:06    Post subject: Change for the repository - nwnx_vaultster Reply with quote

Guys,

I've just made the following change to my local copy of nwnx_vaultster (change is to NWNXVaultster.cpp).

Change is to reuse clients in ERROR state. The problem I hit was that I had one bad transition that sent a null server and port across the vaultster interface. A single player retried this transition enough times to make all my clients go into ERROR state, and nobody else could transition from then on.

I don't have write access, so could someone who does have write access decide whether you want the change.

Cheers,
-Mith

Code:

   else if (cmd == Get || cmd == Put) {
      char* pos[2];
      DWORD id;
      int i;

      // find a not busy client spot in the array
      for (i = 0; i < maxClients; i++) {
         if (clients[i].getStatus() == STATUS_OK)
            break;
         // Client errored out last time, but try it again.
         // Other option is that errored clients stop being
         // usable and we run out.
         if (clients[i].getStatus() == STATUS_ERROR)
            break;
      }

_________________
Admin team, Arelith PW
Hakless world that relies heavily on the great work done by the NWNX team.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Windows development All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group