Functions | |
Address | ConvertToSocketAddress (const Address &address, uint16_t port) |
Convert IPv4/IPv6 address with port to a socket address. | |
bool | IsMulticast (const Address &ad) |
Address family-independent test for a multicast address. | |
Convert IPv4/IPv6 address with port to a socket address.
address | the address to convert |
port | the port |
Definition at line 160 of file address-utils.cc.
References ns3::Ipv4Address::ConvertFrom(), ns3::Ipv6Address::ConvertFrom(), ns3::Ipv4Address::IsMatchingType(), ns3::Ipv6Address::IsMatchingType(), NS_FATAL_ERROR, NS_LOG_DEBUG, NS_LOG_FUNCTION, and port.
Referenced by ns3::ThreeGppHttpClient::SetPort(), ns3::ThreeGppHttpServer::SetPort(), ns3::UdpClient::SetPort(), ns3::UdpEchoClient::SetPort(), and ns3::UdpTraceClient::SetPort().
bool ns3::addressUtils::IsMulticast | ( | const Address & | ad | ) |
Address family-independent test for a multicast address.
ad | the address to test |
Definition at line 130 of file address-utils.cc.
References ns3::Inet6SocketAddress::ConvertFrom(), ns3::InetSocketAddress::ConvertFrom(), ns3::Ipv4Address::ConvertFrom(), ns3::Ipv6Address::ConvertFrom(), ns3::InetSocketAddress::GetIpv4(), ns3::Inet6SocketAddress::GetIpv6(), ns3::Inet6SocketAddress::IsMatchingType(), ns3::InetSocketAddress::IsMatchingType(), ns3::Ipv4Address::IsMatchingType(), ns3::Ipv6Address::IsMatchingType(), ns3::Ipv6Address::IsMulticast(), and NS_LOG_FUNCTION.
Referenced by ns3::PacketSink::StartApplication(), and ns3::UdpEchoServer::StartApplication().