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

Method GetEmbeddedConnection

Core/KernelSML/src/sml_KernelSML.cpp:347–359  ·  view source on GitHub ↗

* @brief There should always be exactly one local connection * to us (the process that loaded us). *************************************************************/

Source from the content-addressed store, hash-verified

345* to us (the process that loaded us).
346*************************************************************/
347Connection* KernelSML::GetEmbeddedConnection()
348{
349 int index = 0 ;
350 for (Connection* pConnection = m_pConnectionManager->GetConnectionByIndex(index) ; pConnection != NULL ; index++)
351 {
352 if (!pConnection->IsRemoteConnection())
353 {
354 return pConnection ;
355 }
356 }
357
358 return NULL ;
359}
360
361/*************************************************************
362* @brief Stop the thread that is used to receive messages

Callers 2

ExecuteCommandLineMethod · 0.80
ExecuteCommandLineMethod · 0.80

Calls 2

GetConnectionByIndexMethod · 0.80
IsRemoteConnectionMethod · 0.45

Tested by

no test coverage detected