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 ShadowBanList (::std::function< void(::std::string const &)> addBanCallback, ::std::chrono::seconds banExpiryDuration, ::std::chrono::seconds appHandshakeGracePeriod)
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)
MCAPI bool tryUnban (::RakNet::SystemAddress const &addr)
MCAPI uint64 updateBans (::std::chrono::seconds now)
MCAPI void * $ctor (::std::function< void(::std::string const &)> addBanCallback, ::std::chrono::seconds banExpiryDuration, ::std::chrono::seconds appHandshakeGracePeriod)
MCAPI void $dtor ()

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

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