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

Function create_connection

dlib/sockets/sockets_kernel_2.cpp:1105–1121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1103// ----------------------------------------------------------------------------------------
1104
1105 int create_connection (
1106 std::unique_ptr<connection>& new_connection,
1107 unsigned short foreign_port,
1108 const std::string& foreign_ip,
1109 unsigned short local_port,
1110 const std::string& local_ip
1111 )
1112 {
1113 new_connection.reset();
1114 connection* temp;
1115 int status = create_connection(temp,foreign_port, foreign_ip, local_port, local_ip);
1116
1117 if (status == 0)
1118 new_connection.reset(temp);
1119
1120 return status;
1121 }
1122
1123 int
1124 create_connection (

Callers 6

connectFunction · 0.70
connect_threadMethod · 0.50
sockstreambuf_testFunction · 0.50
thread_procMethod · 0.50

Calls 7

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

Tested by 4

sockstreambuf_testFunction · 0.40
thread_procMethod · 0.40