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

Function create_connection

dlib/sockets/sockets_kernel_1.cpp:1012–1028  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1010// ----------------------------------------------------------------------------------------
1011
1012 int create_connection (
1013 std::unique_ptr<connection>& new_connection,
1014 unsigned short foreign_port,
1015 const std::string& foreign_ip,
1016 unsigned short local_port,
1017 const std::string& local_ip
1018 )
1019 {
1020 new_connection.reset();
1021 connection* temp;
1022 int status = create_connection(temp,foreign_port, foreign_ip, local_port, local_ip);
1023
1024 if (status == 0)
1025 new_connection.reset(temp);
1026
1027 return status;
1028 }
1029
1030 int create_connection (
1031 connection*& new_connection,

Callers

nothing calls this directly

Calls 7

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

Tested by

no test coverage detected