Class PeerClientFactory
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
IPeerSocketobserver
IPeerObserver<T>maxPacketSize
intlogLevel
LogLevellogWriter
ILogWriterdelayStrategy
DelayStrategyrandom
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
IPeerSocketserializer
IBinarySerializer<T>observer
IPeerObserver<T>maxPacketSize
intlogLevel
LogLevellogWriter
ILogWriterdelayStrategy
DelayStrategyrandom
Random
Returns
- IPeerClient<T>
Type Parameters
T