Skip to content

MeshBeaconHost

Class in IpDrv · IpDrv.MeshBeaconHost · native

Object › MeshBeacon › MeshBeaconHost

Subclasses: H7MeshBeaconHost

Using it from Lua
h7.find_all("MeshBeaconHost")            -- live instances
h7.find_class("IpDrv.MeshBeaconHost")   -- the class
h7.hook("IpDrv.MeshBeaconHost.AllowBandwidthTesting", fn)

Structs

ClientConnectionBandwidthTestData

FieldType
CurrentStateEMeshBeaconBandwidthTestState
TestTypeEMeshBeaconBandwidthTestType
BytesTotalNeededint
BytesReceivedint
RequestTestStartTimedouble
TestStartTimedouble
BandwidthStatsConnectionBandwidthStats

ClientMeshBeaconConnection

FieldType
PlayerNetIdUniqueNetId
ElapsedHeartbeatTimefloat
Socketpointer
bConnectionAcceptedbool
BandwidthTestClientConnectionBandwidthTestData
NatTypeENatType
bCanHostVsbool
GoodHostRatiofloat
BandwidthHistoryarray<ConnectionBandwidthStats>
MinutesSinceLastTestint

Properties

NameTypeNotes
bAllowBandwidthTestingboolprivate
ClientConnectionsarray<ClientMeshBeaconConnection>const
ConnectionBacklogintconfig
OwningPlayerIdUniqueNetIdconst
PendingPlayerConnectionsarray<UniqueNetId>private

Functions

NameDeclaration
AllowBandwidthTestingfunction AllowBandwidthTesting(bool bEnabled)
AllPlayersConnectednative function bool AllPlayersConnected(const out array<UniqueNetId> Players)
CancelInProgressBandwidthTestsnative function CancelInProgressBandwidthTests()
CancelPendingBandwidthTestsnative function CancelPendingBandwidthTests()
DestroyBeaconnative event DestroyBeacon()
GetConnectionIndexForPlayernative function int GetConnectionIndexForPlayer(UniqueNetId PlayerNetId)
HasInProgressBandwidthTestnative function bool HasInProgressBandwidthTest()
HasPendingBandwidthTestnative function bool HasPendingBandwidthTest()
InitHostBeaconnative function bool InitHostBeacon(UniqueNetId InOwningPlayerId)
OnAllPendingPlayersConnecteddelegate OnAllPendingPlayersConnected()
OnFinishedBandwidthTestdelegate OnFinishedBandwidthTest(UniqueNetId PlayerNetId, EMeshBeaconBandwidthTestType TestType, EMeshBeaconBandwidthTestResult TestResult, const out ConnectionBandwidthStats BandwidthStats)
OnReceivedClientConnectionRequestdelegate OnReceivedClientConnectionRequest(const out ClientMeshBeaconConnection NewClientConnection)
OnReceivedClientCreateNewSessionResultdelegate OnReceivedClientCreateNewSessionResult(bool bSucceeded, name SessionName, class<OnlineGameSearch> SearchClass, const out byte PlatformSpecificInfo[80])
OnStartedBandwidthTestdelegate OnStartedBandwidthTest(UniqueNetId PlayerNetId, EMeshBeaconBandwidthTestType TestType)
RequestClientBandwidthTestnative function bool RequestClientBandwidthTest(UniqueNetId PlayerNetId, EMeshBeaconBandwidthTestType TestType, int TestBufferSize)
RequestClientCreateNewSessionnative function bool RequestClientCreateNewSession(UniqueNetId PlayerNetId, name SessionName, class<OnlineGameSearch> SearchClass, const out array<PlayerMember> Players)
SetPendingPlayerConnectionsfunction SetPendingPlayerConnections(const out array<UniqueNetId> Players)
TellClientsToTravelnative function TellClientsToTravel(name SessionName, class<OnlineGameSearch> SearchClass, const out byte PlatformSpecificInfo[80])

Default values

bAllowBandwidthTesting=true

Inherited

FromMembers
MeshBeacon16 properties, 1 functions
Object13 properties, 308 functions