MCPcopy Create free account
hub / github.com/SoarGroup/Soar / SetConnectionInfo

Method SetConnectionInfo

Core/ClientSML/src/sml_ClientKernel.cpp:1065–1070  ·  view source on GitHub ↗

* @brief Sets the name and current status of this connection. * This information is sent to the kernel and can be requested * by other clients. *************************************************************/

Source from the content-addressed store, hash-verified

1063* by other clients.
1064*************************************************************/
1065bool Kernel::SetConnectionInfo(char const* pName, char const* pConnectionStatus, char const* pAgentStatus)
1066{
1067 AnalyzeXML response ;
1068 bool ok = GetConnection()->SendAgentCommand(&response, sml_Names::kCommand_SetConnectionInfo, NULL, sml_Names::kConnectionName, pName, sml_Names::kConnectionStatus, pConnectionStatus, sml_Names::kAgentStatus, pAgentStatus) ;
1069 return ok ;
1070}
1071
1072/*************************************************************
1073* @brief Looks up an agent by name (from our list of known agents).

Callers 7

MyShutdownHandlerFunction · 0.80
mainFunction · 0.80
runMethod · 0.80
startLocalKernelMethod · 0.80
remoteConnectMethod · 0.80
runMethod · 0.80
agentEventHandlerMethod · 0.80

Calls 2

SendAgentCommandMethod · 0.80
GetConnectionFunction · 0.70

Tested by

no test coverage detected