| 570 | // ---------------------------------------------------------------------------------------- |
| 571 | |
| 572 | int listener:: |
| 573 | accept ( |
| 574 | std::unique_ptr<connection>& new_connection, |
| 575 | unsigned long timeout |
| 576 | ) |
| 577 | { |
| 578 | new_connection.reset(0); |
| 579 | connection* con; |
| 580 | int status = this->accept(con, timeout); |
| 581 | |
| 582 | if (status == 0) |
| 583 | new_connection.reset(con); |
| 584 | |
| 585 | return status; |
| 586 | } |
| 587 | |
| 588 | // ---------------------------------------------------------------------------------------- |
| 589 |