* @brief Send this message out to any clients that are listening. * These messages are from one client to another--kernelSML is just * facilitating the message passing process without knowing/caring what is being passed. *************************************************************/
| 248 | * facilitating the message passing process without knowing/caring what is being passed. |
| 249 | *************************************************************/ |
| 250 | std::string KernelSML::SendClientMessage(AgentSML* pAgentSML, char const* pMessageType, char const* pMessage) |
| 251 | { |
| 252 | char response[10000] ; |
| 253 | response[0] = 0 ; |
| 254 | |
| 255 | bool ok = m_RhsListener.HandleEvent(smlEVENT_CLIENT_MESSAGE, pAgentSML, false, pMessageType, pMessage, sizeof(response), response) ; |
| 256 | if (!ok) |
| 257 | { |
| 258 | // There was listening to this message |
| 259 | strcpy(response, "**NOBODY RESPONDED**") ; |
| 260 | } |
| 261 | |
| 262 | return response ; |
| 263 | } |
| 264 | |
| 265 | /************************************************************* |
| 266 | * @brief Send this command line out to all clients that have |