Changeset 255 for vtcross/trunk/src/include
- Timestamp:
- 05/15/09 11:47:36 (15 years ago)
- Location:
- vtcross/trunk/src/include/vtcross
- Files:
-
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
vtcross/trunk/src/include/vtcross/components.h
r247 r255 121 121 void ConnectToShell(const char* serverName, \ 122 122 const char* serverPort); 123 124 123 void SendComponentType(); 125 void WaitForSignal(); 124 void ShellSignalHandler(); 125 void CESignalHandler(int32_t ID); 126 126 void Shutdown(); 127 127 void Reset(); … … 133 133 * on to another component. 134 134 */ 135 void TransferRadioConfiguration( );135 void TransferRadioConfiguration(int32_t ID); 136 136 137 137 /* Receive information regarding a completed 'experience' and pass it on 138 138 * to the appropriate cognitive engine. 139 139 */ 140 void TransferExperience( );140 void TransferExperience(int32_t ID); 141 141 142 142 /* Listen for other components registering their available services with 143 143 * the SML. 144 144 */ 145 void ReceiveServices(); 145 void ReceiveServices(int32_t ID); 146 void DeregisterServices(int32_t ID); 146 147 147 148 /* Change the active mission of the radio to a new one and adjust radio … … 150 151 void SetActiveMission(); 151 152 153 void RegisterCognitiveEngine(int32_t ID); 154 void DeregisterCognitiveEngine(int32_t ID); 155 152 156 /* List all services provided to the radio by registered components. 153 157 */ … … 159 163 void LoadConfiguration(); 160 164 165 /* Create and initialize the DB to hold the services 166 */ 167 void CreateServicesDB(); 168 169 /* Starts the SML Server and watches it for incoming messages 170 */ 171 void StartSMLServer(); 172 161 173 /* The socket file descriptor information for the shell which this SML 162 174 * is connected to. 163 175 */ 164 176 int32_t shellSocketFD; 165 CE_Reg *CE List;166 int32_t cogEngS erv;177 CE_Reg *CE_List; 178 int32_t cogEngSrv; 167 179 int16_t CEPort; 180 uint16_t numberOfCognitiveEngines; 181 uint32_t Current_ID; 182 bool CE_Present; 168 183 }; 169 184 -
vtcross/trunk/src/include/vtcross/containers.h
r247 r255 100 100 */ 101 101 struct CE_Reg { 102 uint32_t IDnum;102 int32_t ID_num; 103 103 sockaddr_in *sock_ptr; 104 socklen_t sock_len; 104 105 }; 105 106 -
vtcross/trunk/src/include/vtcross/socketcomm.h
r231 r255 13 13 #include <stdint.h> 14 14 15 #include " vtcross/containers.h"15 #include "containers.h" 16 16 17 17