Table of Contents

Class PeerClientFactory

Namespace
Backdash.Network.Client
Assembly
Backdash.dll

Create new instances of IPeerClient<T>

public static class PeerClientFactory
Inheritance
PeerClientFactory
Inherited Members

Methods

Create<T>(IPeerSocket, IPeerObserver<T>, int, LogLevel, ILogWriter?, DelayStrategy, Random?)

Creates new IPeerClient<T>

public static IPeerClient<T> Create<T>(IPeerSocket socket, IPeerObserver<T> observer, int maxPacketSize = 65527, LogLevel logLevel = LogLevel.None, ILogWriter? logWriter = null, DelayStrategy delayStrategy = DelayStrategy.Gaussian, Random? random = null) where T : unmanaged

Parameters

socket IPeerSocket
observer IPeerObserver<T>
maxPacketSize int
logLevel LogLevel
logWriter ILogWriter
delayStrategy DelayStrategy
random Random

Returns

IPeerClient<T>

Type Parameters

T

Create<T>(IPeerSocket, IBinarySerializer<T>, IPeerObserver<T>, int, LogLevel, ILogWriter?, DelayStrategy, Random?)

Creates new IPeerClient<T>

public static IPeerClient<T> Create<T>(IPeerSocket socket, IBinarySerializer<T> serializer, IPeerObserver<T> observer, int maxPacketSize = 65527, LogLevel logLevel = LogLevel.None, ILogWriter? logWriter = null, DelayStrategy delayStrategy = DelayStrategy.Gaussian, Random? random = null) where T : unmanaged

Parameters

socket IPeerSocket
serializer IBinarySerializer<T>
observer IPeerObserver<T>
maxPacketSize int
logLevel LogLevel
logWriter ILogWriter
delayStrategy DelayStrategy
random Random

Returns

IPeerClient<T>

Type Parameters

T