Class PeerClientFactory
Create new instances of IPeerClient<T>
public static class PeerClientFactory
- Inheritance
-
PeerClientFactory
- Inherited Members
Methods
Create<T>(IPeerSocket, IPeerObserver<T>, IBinarySerializer<T>?, int)
Creates new IPeerClient<T>
public static IPeerClient<T> Create<T>(IPeerSocket socket, IPeerObserver<T> observer, IBinarySerializer<T>? serializer = null, int maxPacketSize = 65527) where T : unmanaged
Parameters
socket
IPeerSocketobserver
IPeerObserver<T>serializer
IBinarySerializer<T>maxPacketSize
int
Returns
- IPeerClient<T>
Type Parameters
T