Class NetworkManagerTransportTests.FailedTransport
Does nothing but simulate a transport that can fail at startup and/or when polling events.
Inheritance
Unity.Netcode.TestingNetworkTransport
NetworkManagerTransportTests.FailedTransport
Syntax
public class FailedTransport : TestingNetworkTransport
Fields
FailOnNextPoll
Declaration
public bool FailOnNextPoll
Field Value
FailOnStart
Declaration
Field Value
Properties
ServerClientId
Declaration
public override ulong ServerClientId { get; }
Property Value
Overrides
Methods
DisconnectLocalClient()
Declaration
public override void DisconnectLocalClient()
Overrides
DisconnectRemoteClient(UInt64)
Declaration
public override void DisconnectRemoteClient(ulong clientId)
Parameters
Type |
Name |
Description |
UInt64 |
clientId |
|
Overrides
GetCurrentRtt(UInt64)
Declaration
public override ulong GetCurrentRtt(ulong clientId)
Parameters
Type |
Name |
Description |
UInt64 |
clientId |
|
Returns
Overrides
Initialize(NetworkManager)
Declaration
public override void Initialize(NetworkManager networkManager = null)
Parameters
PollEvent(out UInt64, out ArraySegment<Byte>, out Single)
Declaration
public override NetworkEvent PollEvent(out ulong clientId, out ArraySegment<byte> payload, out float receiveTime)
Parameters
Returns
Overrides
Send(UInt64, ArraySegment<Byte>, NetworkDelivery)
Declaration
public override void Send(ulong clientId, ArraySegment<byte> payload, NetworkDelivery networkDelivery)
Parameters
Shutdown()
Declaration
public override void Shutdown()
Overrides
StartClient()
Declaration
public override bool StartClient()
Returns
Overrides
StartServer()
Declaration
public override bool StartServer()
Returns
Overrides