| 202 | } |
| 203 | |
| 204 | bool HttpConnection::isActive() |
| 205 | { |
| 206 | if(tcp == nullptr) { |
| 207 | return false; |
| 208 | } |
| 209 | |
| 210 | for(auto pcb = tcp_active_pcbs; pcb != nullptr; pcb = pcb->next) { |
| 211 | if(tcp == pcb) { |
| 212 | return true; |
| 213 | } |
| 214 | } |
| 215 | |
| 216 | return false; |
| 217 | } |