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

Method InsertConn

adapter/micro_thread/mt_connection.h:255–261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

253 };
254
255 void InsertConn(TcpKeepConn* conn) {
256 if (conn->_keep_flag & TCP_KEEP_IN_LIST) {
257 return;
258 }
259 TAILQ_INSERT_TAIL(&_keep_list, conn, _keep_entry);
260 conn->_keep_flag |= TCP_KEEP_IN_LIST;
261 };
262
263 void RemoveConn(TcpKeepConn* conn) {
264 if (!(conn->_keep_flag & TCP_KEEP_IN_LIST)) {

Callers 1

CacheTcpKeepConnMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected