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

Method accept

dlib/sockets/sockets_kernel_1.cpp:530–544  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

selectFunction · 0.50
resetMethod · 0.45
assignMethod · 0.45

Tested by

no test coverage detected