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

Method connection

dlib/sockets/sockets_kernel_2.cpp:320–338  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

318// ----------------------------------------------------------------------------------------
319
320 connection::
321 connection(
322 int sock,
323 int foreign_port,
324 const std::string& foreign_ip,
325 int local_port,
326 const std::string& local_ip
327 ) :
328 connection_socket(sock),
329 info(in_place_tag<inet_info>{},
330 foreign_port,
331 foreign_ip,
332 local_port,
333 local_ip
334 ),
335 sd(false),
336 sdo(false),
337 sdr(0)
338 {}
339
340// ----------------------------------------------------------------------------------------
341

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected