MCPcopy Create free account
hub / github.com/Tencent/Hardcoder / getWindowBySeq

Method getWindowBySeq

libapp2sys/src/main/cpp/udp.h:405–412  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

403 }
404
405 TimeoutEvent* getWindowBySeq(TimeoutEvent *window, uint32_t seq) {
406 for (uint32_t i = 0; i < CONST_WINDOW; i++) {
407 if (window[i].udpPkg && window[i].udpPkg->seq == seq) {
408 return &window[i];
409 }
410 }
411 return NULL;
412 }
413
414 TimeoutEvent* checkEmptyWindow(TimeoutEvent *window, int expectSeq) {
415 uint32_t minSeq = INT_MAX;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected