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

Function create_connection

dlib/sockets/sockets_kernel_1.cpp:766–782  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

764// ----------------------------------------------------------------------------------------
765
766 int create_connection (
767 std::unique_ptr<connection>& new_connection,
768 unsigned short foreign_port,
769 const std::string& foreign_ip,
770 unsigned short local_port,
771 const std::string& local_ip
772 )
773 {
774 new_connection.reset();
775 connection* temp;
776 int status = create_connection(temp,foreign_port, foreign_ip, local_port, local_ip);
777
778 if (status == 0)
779 new_connection.reset(temp);
780
781 return status;
782 }
783
784 int create_connection (
785 connection*& new_connection,

Callers

nothing calls this directly

Calls 6

bindClass · 0.85
connectFunction · 0.85
sockets_startupFunction · 0.70
resetMethod · 0.45
emptyMethod · 0.45
assignMethod · 0.45

Tested by

no test coverage detected