Ignore:
Timestamp:
11/13/14 15:09:23 (10 years ago)
Author:
mhnguyen
Message:

Implementing buffer-size automatic detection in mode connected server-client (client is also server)

+) Rearrange some functions to make sure they work in both cases: connected and seperated
+) Make some cleans of code

Test
+) On Curie
+) Both modes, all tests pass

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/node/context.cpp

    r509 r510  
    337337   void CContext::closeDefinition(void) 
    338338   { 
    339      if (hasClient && !hasServer) 
     339     if (hasClient) 
    340340     { 
    341341       // After xml is parsed, there are some more works with post processing 
    342342       postProcessing(); 
    343  
     343// 
    344344       setClientServerBuffer(); 
     345     } 
     346 
     347     if (hasClient && !hasServer) 
     348     { 
     349       // After xml is parsed, there are some more works with post processing 
     350//       postProcessing(); 
     351 
     352//       setClientServerBuffer(); 
    345353 
    346354      // Send all attributes of current context to server 
     
    368376 
    369377    // There are some processings that should be done after all of above. For example: check mask or index 
    370     if (hasClient && !hasServer) 
     378//    if (hasClient && !hasServer) 
     379    if (hasClient) 
    371380    { 
    372381      this->solveAllRefOfEnabledFields(true); 
    373382      this->buildAllExpressionOfEnabledFields(); 
    374383    } 
     384 
     385 
    375386 
    376387//      if (hasClient) 
     
    482493      const vector<CFile*> allFiles=CFile::getAll() ; 
    483494 
    484      if (hasClient && !hasServer) 
    485       for (unsigned int i = 0; i < allFiles.size(); i++) 
    486          allFiles[i]->solveFieldRefInheritance(apply); 
     495     //if (hasClient && !hasServer) 
     496      if (hasClient) 
     497        for (unsigned int i = 0; i < allFiles.size(); i++) 
     498          allFiles[i]->solveFieldRefInheritance(apply); 
    487499   } 
    488500 
     
    686698     if (isPostProcessed) return; 
    687699 
    688      this->solveCalendar(); 
    689  
    690700     // Solve calendar for both side: client and server 
    691701      this->solveCalendar(); 
Note: See TracChangeset for help on using the changeset viewer.