Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
RakNet::ShadowBanList Class Reference

Classes

struct  Entry

Public Types

using BanCallback = ::std::function<void(::std::string const&)>
using Ip = ::std::array<::std::byte, 16>
using LoggingFunctor = ::std::function<void(::std::string const&)>
using Time = ::std::chrono::seconds

Public Member Functions

MCAPI ushort addBan (::RakNet::SystemAddress const &addr, ::std::chrono::seconds time)
MCAPI::RakNet::RakPeer::RemoteSystemStruct * shouldDisconnectConnection (::RakNet::SystemAddress srcAddr, ::std::chrono::seconds now, ::gsl::span<::RakNet::RakPeer::RemoteSystemStruct * > remotes)

Public Attributes

::ll::TypedStorage< 8, 8, ::std::chrono::seconds > banExpiryDuration
::ll::TypedStorage< 8, 8, ::std::chrono::seconds > appHandshakeGracePeriod
::ll::TypedStorage< 8, 10240, ::std::array<::std::optional<::RakNet::ShadowBanList::Entry >, 256 > > mEntries
::ll::TypedStorage< 8, 64, ::std::function< void(::std::string const &)> > mBanCallback

Member Function Documentation

◆ addBan()

MCAPI ushort RakNet::ShadowBanList::addBan ( ::RakNet::SystemAddress const & addr,
::std::chrono::seconds time )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ shouldDisconnectConnection()

MCAPI::RakNet::RakPeer::RemoteSystemStruct * RakNet::ShadowBanList::shouldDisconnectConnection ( ::RakNet::SystemAddress srcAddr,
::std::chrono::seconds now,
::gsl::span<::RakNet::RakPeer::RemoteSystemStruct * > remotes )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

The documentation for this class was generated from the following file: