Class NetworkManagerTransportTests.FailedTransport
Does nothing but simulate a transport that can fail at startup and/or when polling events.
Inheritance
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
Methods
DisconnectLocalClient()
Declaration
public override void DisconnectLocalClient()
DisconnectRemoteClient(UInt64)
Declaration
public override void DisconnectRemoteClient(ulong clientId)
Parameters
Type |
Name |
Description |
UInt64 |
clientId |
|
GetCurrentRtt(UInt64)
Declaration
public override ulong GetCurrentRtt(ulong clientId)
Parameters
Type |
Name |
Description |
UInt64 |
clientId |
|
Returns
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
Send(UInt64, ArraySegment<Byte>, NetworkDelivery)
Declaration
public override void Send(ulong clientId, ArraySegment<byte> payload, NetworkDelivery networkDelivery)
Parameters
Shutdown()
Declaration
public override void Shutdown()
StartClient()
Declaration
public override bool StartClient()
Returns
StartServer()
Declaration
public override bool StartServer()
Returns