| 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); |
no outgoing calls
no test coverage detected