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

Method CheckForIncomingCommands

Core/ClientSML/src/sml_ClientKernel.cpp:1623–1632  ·  view source on GitHub ↗

* @brief If this is an embedded connection using "synchronous execution" * then we need to call this periodically to look for commands * coming in from remote sockets. * If this is a remote connection or an embedded connection * with asynch execution, commands are executed on a different * thread inside the kernel, so that thread checks for these * incomin

Source from the content-addressed store, hash-verified

1621* having to call this).
1622*************************************************************/
1623bool Kernel::CheckForIncomingCommands()
1624{
1625 AnalyzeXML response ;
1626 if (GetConnection()->SendAgentCommand(&response, sml_Names::kCommand_CheckForIncomingCommands))
1627 {
1628 return response.GetResultBool(false) ;
1629 }
1630
1631 return false ;
1632}
1633
1634/*************************************************************
1635* @brief See if there are any incoming messages waiting to

Callers 3

runMethod · 0.80
TestListenerMethod · 0.80
InterruptCallbackHandlerFunction · 0.80

Calls 3

SendAgentCommandMethod · 0.80
GetConnectionFunction · 0.70
GetResultBoolMethod · 0.45

Tested by 2

TestListenerMethod · 0.64
InterruptCallbackHandlerFunction · 0.64