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

Function CheckForExistingConnection

source/src/cip/cipconnectionmanager.c:954–970  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

952}
953
954CipConnectionObject *CheckForExistingConnection(
955 const CipConnectionObject *const connection_object) {
956
957 DoublyLinkedListNode *iterator = connection_list.first;
958
959 while(NULL != iterator) {
960 if(kConnectionObjectStateEstablished ==
961 ConnectionObjectGetState(iterator->data) ) {
962 if(EqualConnectionTriad(connection_object, iterator->data) ) {
963 return iterator->data;
964 }
965 }
966 iterator = iterator->next;
967 }
968
969 return NULL;
970}
971
972EipStatus CheckElectronicKeyData(
973 EipUint8 key_format,

Callers 1

ForwardOpenFunction · 0.85

Calls 2

ConnectionObjectGetStateFunction · 0.85
EqualConnectionTriadFunction · 0.85

Tested by

no test coverage detected