| 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 |
nothing calls this directly
no outgoing calls
no test coverage detected