Changeset 285 for vtcross/trunk/src/service_management_layer
- Timestamp:
- 06/16/09 16:12:04 (15 years ago)
- Location:
- vtcross/trunk/src/service_management_layer
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
vtcross/trunk/src/service_management_layer/ServiceManagementLayer.cpp
r282 r285 133 133 //Also, their sizes are hardcoded into the code in various places; a fix for a future version. 134 134 ServiceManagementLayer::ServiceManagementLayer(const char* SML_Config, \ 135 const char* serverName, const char* serverPort )135 const char* serverName, const char* serverPort, int16_t clientPort) 136 136 { 137 137 LOG("Creating Service Management Layer.\n"); 138 138 _SML_Config = SML_Config; 139 SMLport = clientPort; 139 140 140 141 ConnectToShell(serverName, serverPort); … … 588 589 break; 589 590 } 591 592 LOG("ServiceManagementLayer:: Received Set Active Mission command: %i\n",missID); 590 593 //For each service in the mission 591 594 for(int i = 0; i < miss[activeMission].numServices; i++) … … 620 623 //Nothing to be done for conditionals at this stage 621 624 } 622 625 626 SendMessage(shellSocketFD, "ack"); 623 627 624 628 //printf("\nhere ---%d, %d---\n", miss[activeMission].services[0].componentID, miss[activeMission].services[1].componentID); … … 1278 1282 fd_set sockSet, shellSet; 1279 1283 1280 cogEngSrv = CreateTCPServerSocket( 2044);1284 cogEngSrv = CreateTCPServerSocket(SMLport); 1281 1285 int32_t maxDescriptor = cogEngSrv; 1282 1286 -
vtcross/trunk/src/service_management_layer/sml_demo.cpp
r279 r285 50 50 { 51 51 52 if(argc < 3)53 ERROR(1, "Usage: %s config hostname port\n", argv[0]);52 if(argc < 5) 53 ERROR(1, "Usage: %s config hostname shell_port client_port\n", argv[0]); 54 54 55 ServiceManagementLayer SML(argv[1], argv[2], argv[3] );55 ServiceManagementLayer SML(argv[1], argv[2], argv[3], atoi(argv[4])); 56 56 SML.StartSMLServer(); 57 57 }