TrinityCore
Trinity::Net Namespace Reference

Namespaces

namespace  Http
 

Functions

uint32 address_to_uint (boost::asio::ip::address_v4 const &address)
 
bool IsInLocalNetwork (boost::asio::ip::address const &clientAddress)
 
bool IsInNetwork (boost::asio::ip::network_v4 const &network, boost::asio::ip::address_v4 const &clientAddress)
 
bool IsInNetwork (boost::asio::ip::network_v6 const &network, boost::asio::ip::address_v6 const &clientAddress)
 
Optional< std::size_t > SelectAddressForClient (boost::asio::ip::address const &clientAddress, std::span< boost::asio::ip::address const > const &addresses)
 
TC_COMMON_API void ScanLocalNetworks ()
 

Function Documentation

◆ address_to_uint()

uint32 Trinity::Net::address_to_uint ( boost::asio::ip::address_v4 const &  address)
inline

Definition at line 31 of file IpAddress.h.

+ Here is the caller graph for this function:

◆ IsInLocalNetwork()

TC_COMMON_API bool Trinity::Net::IsInLocalNetwork ( boost::asio::ip::address const &  clientAddress)

Definition at line 32 of file IpNetwork.cpp.

+ Here is the caller graph for this function:

◆ IsInNetwork() [1/2]

TC_COMMON_API bool Trinity::Net::IsInNetwork ( boost::asio::ip::network_v4 const &  network,
boost::asio::ip::address_v4 const &  clientAddress 
)

Definition at line 53 of file IpNetwork.cpp.

◆ IsInNetwork() [2/2]

TC_COMMON_API bool Trinity::Net::IsInNetwork ( boost::asio::ip::network_v6 const &  network,
boost::asio::ip::address_v6 const &  clientAddress 
)

Definition at line 62 of file IpNetwork.cpp.

◆ ScanLocalNetworks()

void Trinity::Net::ScanLocalNetworks ( )

Definition at line 149 of file IpNetwork.cpp.

+ Here is the caller graph for this function:

◆ SelectAddressForClient()

TC_COMMON_API Optional< std::size_t > Trinity::Net::SelectAddressForClient ( boost::asio::ip::address const &  clientAddress,
std::span< boost::asio::ip::address const > const &  addresses 
)

Definition at line 71 of file IpNetwork.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function: