TrinityCore
Loading...
Searching...
No Matches
Trinity::Net Namespace Reference

Namespaces

namespace  IpBanCheckHelpers
 

Classes

class  AsyncAcceptor
 
struct  InvokeReadHandlerCallback
 
struct  IpBanCheckConnectionInitializer
 
class  NetworkThread
 
struct  ReadConnectionInitializer
 
class  Socket
 
struct  SocketConnectionInitializer
 
class  SocketMgr
 
struct  SslHandshakeConnectionInitializer
 
class  SslStream
 

Concepts

concept  AcceptCallback
 
concept  SocketReadCallback
 

Typedefs

using IoContextTcpSocket = boost::asio::basic_stream_socket< boost::asio::ip::tcp, boost::asio::io_context::executor_type >
 

Enumerations

enum class  SocketReadCallbackResult { KeepReading , Stop }
 

Functions

uint32 address_to_uint (boost::asio::ip::address_v4 const &address)
 
bool IsInNetwork (boost::asio::ip::address_v4 const &networkAddress, boost::asio::ip::address_v4 const &mask, boost::asio::ip::address_v4 const &clientAddress)
 
boost::asio::ip::address_v4 GetDefaultNetmaskV4 (boost::asio::ip::address_v4 const &networkAddress)
 
bool IsInNetwork (boost::asio::ip::address_v6 const &networkAddress, uint16 prefixLength, boost::asio::ip::address_v6 const &clientAddress)
 

Typedef Documentation

◆ IoContextTcpSocket

using Trinity::Net::IoContextTcpSocket = typedef boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::io_context::executor_type>

Definition at line 41 of file Socket.h.

Enumeration Type Documentation

◆ SocketReadCallbackResult

Enumerator
KeepReading 
Stop 

Definition at line 43 of file Socket.h.

Function Documentation

◆ address_to_uint()

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

Definition at line 30 of file IpAddress.h.

+ Here is the caller graph for this function:

◆ GetDefaultNetmaskV4()

boost::asio::ip::address_v4 Trinity::Net::GetDefaultNetmaskV4 ( boost::asio::ip::address_v4 const &  networkAddress)
inline

Definition at line 37 of file IpNetwork.h.

+ Here is the call graph for this function:

◆ IsInNetwork() [1/2]

bool Trinity::Net::IsInNetwork ( boost::asio::ip::address_v4 const &  networkAddress,
boost::asio::ip::address_v4 const &  mask,
boost::asio::ip::address_v4 const &  clientAddress 
)
inline

Definition at line 30 of file IpNetwork.h.

+ Here is the caller graph for this function:

◆ IsInNetwork() [2/2]

bool Trinity::Net::IsInNetwork ( boost::asio::ip::address_v6 const &  networkAddress,
uint16  prefixLength,
boost::asio::ip::address_v6 const &  clientAddress 
)
inline

Definition at line 48 of file IpNetwork.h.