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

Method connection

dlib/sockets/sockets_kernel_1.cpp:239–260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237// ----------------------------------------------------------------------------------------
238
239 connection::
240 connection(
241 SOCKET_container sock,
242 unsigned short foreign_port,
243 const std::string& foreign_ip,
244 unsigned short local_port,
245 const std::string& local_ip
246 ) :
247 user_data(0),
248 connection_socket(*(new SOCKET_container())),
249 info(in_place_tag<inet_info>{},
250 foreign_port,
251 foreign_ip,
252 local_port,
253 local_ip
254 ),
255 sd(false),
256 sdo(false),
257 sdr(0)
258 {
259 connection_socket = sock;
260 }
261
262// ----------------------------------------------------------------------------------------
263

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected