Class PeerEvents
Event based implementation of a peer listener.
Inheritance
System.Object
PeerEvents
Assembly: cs.temp.dll.dll
Syntax
public class PeerEvents : IPeerListener
Events
OnConnect
Called when a peer successfully connects.
Declaration
public event PeerEvents.OnConnectHandler OnConnect
Event Type
Type |
Description |
SuperNet.Netcode.Transport.PeerEvents.OnConnectHandler |
|
OnDisconnect
Called when a peer disconnects.
Declaration
public event PeerEvents.OnDisconnectHandler OnDisconnect
Event Type
Type |
Description |
SuperNet.Netcode.Transport.PeerEvents.OnDisconnectHandler |
|
OnException
Called when an exception occurs internally. Can be ignored.
Declaration
public event PeerEvents.OnExceptionHandler OnException
Event Type
Type |
Description |
SuperNet.Netcode.Transport.PeerEvents.OnExceptionHandler |
|
OnReceive
Called when a peer receives a connected message.
Declaration
public event PeerEvents.OnReceiveHandler OnReceive
Event Type
Type |
Description |
SuperNet.Netcode.Transport.PeerEvents.OnReceiveHandler |
|
OnUpdateRTT
Called when round trip time (ping) is updated.
Declaration
public event PeerEvents.OnUpdateRTTHandler OnUpdateRTT
Event Type
Type |
Description |
SuperNet.Netcode.Transport.PeerEvents.OnUpdateRTTHandler |
|
Explicit Interface Implementations
IPeerListener.OnPeerConnect(Peer)
Declaration
void IPeerListener.OnPeerConnect(Peer peer)
Parameters
Type |
Name |
Description |
Peer |
peer |
|
IPeerListener.OnPeerDisconnect(Peer, Reader, DisconnectReason, Exception)
Declaration
void IPeerListener.OnPeerDisconnect(Peer peer, Reader reader, DisconnectReason reason, Exception exception)
Parameters
IPeerListener.OnPeerException(Peer, Exception)
Declaration
void IPeerListener.OnPeerException(Peer peer, Exception exception)
Parameters
Type |
Name |
Description |
Peer |
peer |
|
Exception |
exception |
|
IPeerListener.OnPeerReceive(Peer, Reader, MessageReceived)
Declaration
void IPeerListener.OnPeerReceive(Peer peer, Reader reader, MessageReceived info)
Parameters
IPeerListener.OnPeerUpdateRTT(Peer, UInt16)
Declaration
void IPeerListener.OnPeerUpdateRTT(Peer peer, ushort rtt)
Parameters
Type |
Name |
Description |
Peer |
peer |
|
System.UInt16 |
rtt |
|
Implements