| 577 | } |
| 578 | |
| 579 | void HTTPServer::update(void) { |
| 580 | HTTPConnectionMap::iterator itr = liveConnections.begin(); |
| 581 | |
| 582 | while (itr != liveConnections.end()) { |
| 583 | if (itr->second.update()) { |
| 584 | HTTPConnectionMap::iterator i = itr; |
| 585 | itr++; |
| 586 | bz_removeNonPlayerConnectionHandler(i->first, this); |
| 587 | bz_disconnectNonPlayerConnection(i->first); |
| 588 | } |
| 589 | else { |
| 590 | itr++; |
| 591 | } |
| 592 | } |
| 593 | |
| 594 | if (liveConnections.size()) { |
| 595 | bz_setMaxWaitTime(0.01f, "HTTPServer"); |
| 596 | } |
| 597 | else { |
| 598 | bz_clearMaxWaitTime("HTTPServer"); |
| 599 | } |
| 600 | } |
| 601 | |
| 602 | void HTTPServer::generateIndex(int connectionID, const HTTPRequest& request) { |
| 603 | HTTPConnectionMap::iterator itr = liveConnections.find(connectionID); |
no test coverage detected