| 1078 | } |
| 1079 | |
| 1080 | AddressResolver::AddressResolver (std::shared_ptr<ClientDestination> destination): |
| 1081 | m_LocalDestination (destination) |
| 1082 | { |
| 1083 | if (m_LocalDestination) |
| 1084 | { |
| 1085 | auto datagram = m_LocalDestination->GetDatagramDestination (); |
| 1086 | if (!datagram) |
| 1087 | datagram = m_LocalDestination->CreateDatagramDestination (); |
| 1088 | datagram->SetReceiver (std::bind (&AddressResolver::HandleRequest, this, |
| 1089 | std::placeholders::_1, std::placeholders::_2, std::placeholders::_3, std::placeholders::_4, std::placeholders::_5), |
| 1090 | ADDRESS_RESOLVER_DATAGRAM_PORT); |
| 1091 | } |
| 1092 | } |
| 1093 | |
| 1094 | AddressResolver::~AddressResolver () |
| 1095 | { |
nothing calls this directly
no test coverage detected