Changeset 182

Show
Ignore:
Timestamp:
03/22/09 00:38:35 (15 years ago)
Author:
bhilburn
Message:

Need to get the components using standard TCP/IP structs to store information
regarding remote hosts (like where the SML or shell is). This is absolutely the
next step.

Location:
vtcross/trunk/src
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • vtcross/trunk/src/include/vtcross/components.h

    r181 r182  
    137137 * there is no SML present, the engine should have no instantiation of this 
    138138 * struct. 
     139 * 
     140 * TODO pretty sure this guy is wholly unnecessary... should be using standard 
     141 * TCP/IP structs like hostent.... 
    139142 */ 
    140143struct SML_Info { 
  • vtcross/trunk/src/policy_engines/PolicyEngine.cpp

    r181 r182  
    8282PolicyEngine::Shutdown() 
    8383{ 
     84    if(SML) 
     85        DeregisterServices(SML->socketFD); 
     86    // TODO otherwise, deregister from shell 
    8487} 
    8588 
     
    103106PolicyEngine::DeregisterComponent(int32_t socketFD) 
    104107{ 
     108    SendMessage(socketFD, "deregister_engine_policy"); 
     109    LOG("Policy Engine:: Registration message sent.\n"); 
    105110} 
    106111 
     
    138143PolicyEngine::ReloadPolicies() 
    139144{ 
     145    LOG("PolicyEngine:: Reloading policies.\n"); 
    140146} 
    141147