Changeset 164
- Timestamp:
- 03/19/09 13:37:36 (15 years ago)
- Location:
- vtcross/trunk/src
- Files:
-
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
vtcross/trunk/src/lib/socketcomm/socketcomm.cpp
r161 r164 23 23 24 24 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 25 27 void 26 28 ReadMessage(int32_t socketFD, char* msgBuffer) -
vtcross/trunk/src/policy_engines/PolicyEngine.cpp
r161 r164 47 47 struct Parameter pList[10]; 48 48 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)) { 52 52 LOG("Policy Engine:: Validating Transmission Parameters.\n"); 53 53 ValidateParameters(pList, &ce_info, decision_array); -
vtcross/trunk/src/service_management_layer/ServiceManagementLayer.cpp
r163 r164 23 23 ServiceManagementLayer::ServiceManagementLayer() 24 24 { 25 LOG("Creating Service Management Layer.\n"); 26 LoadConfiguration(); 25 27 } 26 28 … … 39 41 void 40 42 ServiceManagementLayer::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 42 56 } 43 57 … … 58 72 ServiceManagementLayer::RegisterComponent(int32_t socketFD) 59 73 { 74 SendMessage(socketFD, "sml_register"); 75 LOG("ServiceManagementLayer:: Registration message sent.\n"); 60 76 } 61 77 … … 106 122 ServiceManagementLayer::LoadConfiguration() 107 123 { 124 LOG("ServiceManagementLayer:: Loading Configuration.\n"); 108 125 } 109 126