MCPcopy Create free account
hub / github.com/EIPStackGroup/OpENer / GetConnectedObject

Function GetConnectedObject

source/src/cip/cipconnectionmanager.c:919–932  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

917}
918
919CipConnectionObject *GetConnectedObject(const EipUint32 connection_id) {
920 DoublyLinkedListNode *iterator = connection_list.first;
921
922 while(NULL != iterator) {
923 if(kConnectionObjectStateEstablished ==
924 ConnectionObjectGetState(iterator->data) &&
925 connection_id ==
926 ConnectionObjectGetCipConsumedConnectionID(iterator->data) ) {
927 return iterator->data;
928 }
929 iterator = iterator->next;
930 }
931 return NULL;
932}
933
934CipConnectionObject *GetConnectedOutputAssembly(
935 const EipUint32 output_assembly_id) {

Callers 2

Tested by

no test coverage detected