Changeset 164

Show
Ignore:
Timestamp:
03/19/09 13:37:36 (15 years ago)
Author:
bhilburn
Message:

Added some TODOs to the following files:

Location:
vtcross/trunk/src
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • vtcross/trunk/src/lib/socketcomm/socketcomm.cpp

    r161 r164  
    2323 
    2424 
     25// TODO can someone write a description of how this function is operating? I'm 
     26// not sure I understand why it is making two separate blocking calls to recv 
    2527void 
    2628ReadMessage(int32_t socketFD, char* msgBuffer) 
  • vtcross/trunk/src/policy_engines/PolicyEngine.cpp

    r161 r164  
    4747    struct Parameter pList[10]; 
    4848    struct CE_Info ce_info; 
    49     int32_t ret = GetRequest(socketFD, pList, &ce_info); 
    50     
    51     if(ret == 1) { 
     49 
     50    // TODO should this be a GetRequest call or something else? 
     51    if(GetRequest(socketFD, pList, &ce_info)) { 
    5252        LOG("Policy Engine:: Validating Transmission Parameters.\n"); 
    5353        ValidateParameters(pList, &ce_info, decision_array);     
  • vtcross/trunk/src/service_management_layer/ServiceManagementLayer.cpp

    r163 r164  
    2323ServiceManagementLayer::ServiceManagementLayer() 
    2424{ 
     25    LOG("Creating Service Management Layer.\n"); 
     26    LoadConfiguration(); 
    2527} 
    2628 
     
    3941void  
    4042ServiceManagementLayer::WaitForSignal(int32_t socketFD) 
    41 { 
     43{    
     44    LOG("ServiceManagementLayer:: Waiting for signal...\n"); 
     45 
     46    // TODO This is the critical point of this class... we need to figure out 
     47    // what the requests will look like before we can proceed. 
     48    while(1) {} 
     49 
     50    /* 
     51    if(GetRequest(socketFD, pList, &ce_info)) { 
     52        LOG("ServiceManagementLayer:: Received signal.\n"); 
     53    } 
     54    */ 
     55 
    4256} 
    4357 
     
    5872ServiceManagementLayer::RegisterComponent(int32_t socketFD) 
    5973{ 
     74    SendMessage(socketFD, "sml_register"); 
     75    LOG("ServiceManagementLayer:: Registration message sent.\n"); 
    6076} 
    6177 
     
    106122ServiceManagementLayer::LoadConfiguration() 
    107123{ 
     124    LOG("ServiceManagementLayer:: Loading Configuration.\n"); 
    108125} 
    109126