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

Method accept

dlib/sockets/sockets_kernel_2.cpp:529–543  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

527// ----------------------------------------------------------------------------------------
528
529 int listener::
530 accept (
531 std::unique_ptr<connection>& new_connection,
532 unsigned long timeout
533 )
534 {
535 new_connection.reset(0);
536 connection* con;
537 int status = this->accept(con, timeout);
538
539 if (status == 0)
540 new_connection.reset(con);
541
542 return status;
543 }
544
545// ----------------------------------------------------------------------------------------
546

Callers

nothing calls this directly

Calls 1

resetMethod · 0.45

Tested by

no test coverage detected