MCPcopy Create free account
hub / github.com/F-Stack/f-stack / RemoveConn

Method RemoveConn

adapter/micro_thread/mt_connection.h:263–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261 };
262
263 void RemoveConn(TcpKeepConn* conn) {
264 if (!(conn->_keep_flag & TCP_KEEP_IN_LIST)) {
265 return;
266 }
267 TAILQ_REMOVE(&_keep_list, conn, _keep_entry);
268 conn->_keep_flag &= ~TCP_KEEP_IN_LIST;
269 };
270
271 TcpKeepConn* GetFirstConn() {
272 return TAILQ_FIRST(&_keep_list);

Callers 2

GetTcpKeepConnMethod · 0.80
RemoveTcpKeepConnMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected