MCPcopy Create free account
hub / github.com/davisking/dlib / accept

Method accept

dlib/sockets/sockets_kernel_2.cpp:572–586  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

resetMethod · 0.45

Tested by

no test coverage detected