Class NetworkManagerTransportTests.FailedTransport
Does nothing but simulate a transport that can fail at startup and/or when polling events.
Inheritance
TestingNetworkTransport
NetworkManagerTransportTests.FailedTransport
Assembly: solution.dll
Syntax
public class NetworkManagerTransportTests.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(ulong)
Declaration
public override void DisconnectRemoteClient(ulong clientId)
Parameters
Type |
Name |
Description |
ulong |
clientId |
|
Overrides
GetCurrentRtt(ulong)
Declaration
public override ulong GetCurrentRtt(ulong clientId)
Parameters
Type |
Name |
Description |
ulong |
clientId |
|
Returns
Overrides
Initialize(NetworkManager)
Declaration
public override void Initialize(NetworkManager networkManager = null)
Parameters
PollEvent(out ulong, out ArraySegment<byte>, out float)
Declaration
public override NetworkEvent PollEvent(out ulong clientId, out ArraySegment<byte> payload, out float receiveTime)
Parameters
Returns
Overrides
Send(ulong, 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