Interface IPeerObserver<T>
Observe a IPeerClient<T>
public interface IPeerObserver<T> where T : struct
Type Parameters
T
Methods
OnPeerMessage(in T, SocketAddress, int)
Handle new message from peer
void OnPeerMessage(in T message, SocketAddress from, int bytesReceived)
Parameters
message
Tfrom
SocketAddressbytesReceived
int