Class HostEvents
Event based implementation of a host listener.
Inheritance
System.Object
HostEvents
Assembly: cs.temp.dll.dll
Syntax
public class HostEvents : IHostListener
Events
OnException
Called when an exception occurs internally. Can be ignored.
Declaration
public event HostEvents.OnExceptionHandler OnException
Event Type
Type |
Description |
SuperNet.Netcode.Transport.HostEvents.OnExceptionHandler |
|
OnReceiveBroadcast
Called for every broadcast message the host receives.
Declaration
public event HostEvents.OnReceiveBroadcastHandler OnReceiveBroadcast
Event Type
Type |
Description |
SuperNet.Netcode.Transport.HostEvents.OnReceiveBroadcastHandler |
|
OnReceiveRequest
Called when a connection request is received.
Declaration
public event HostEvents.OnReceiveRequestHandler OnReceiveRequest
Event Type
Type |
Description |
SuperNet.Netcode.Transport.HostEvents.OnReceiveRequestHandler |
|
OnReceiveSocket
Called for every raw packet the host receives.
Declaration
public event HostEvents.OnReceiveSocketHandler OnReceiveSocket
Event Type
Type |
Description |
SuperNet.Netcode.Transport.HostEvents.OnReceiveSocketHandler |
|
OnReceiveUnconnected
Called for every unconnected message the host receives.
Declaration
public event HostEvents.OnReceiveUnconnectedHandler OnReceiveUnconnected
Event Type
Type |
Description |
SuperNet.Netcode.Transport.HostEvents.OnReceiveUnconnectedHandler |
|
OnShutdown
Called when the host shuts down.
Declaration
public event HostEvents.OnShutdownHandler OnShutdown
Event Type
Type |
Description |
SuperNet.Netcode.Transport.HostEvents.OnShutdownHandler |
|
Explicit Interface Implementations
IHostListener.OnHostException(IPEndPoint, Exception)
Declaration
void IHostListener.OnHostException(IPEndPoint remote, Exception exception)
Parameters
Type |
Name |
Description |
IPEndPoint |
remote |
|
Exception |
exception |
|
IHostListener.OnHostReceiveBroadcast(IPEndPoint, Reader)
Declaration
void IHostListener.OnHostReceiveBroadcast(IPEndPoint remote, Reader message)
Parameters
Type |
Name |
Description |
IPEndPoint |
remote |
|
Reader |
message |
|
IHostListener.OnHostReceiveRequest(ConnectionRequest, Reader)
Declaration
void IHostListener.OnHostReceiveRequest(ConnectionRequest request, Reader message)
Parameters
IHostListener.OnHostReceiveSocket(IPEndPoint, Byte[], Int32)
Declaration
void IHostListener.OnHostReceiveSocket(IPEndPoint remote, byte[] buffer, int length)
Parameters
Type |
Name |
Description |
IPEndPoint |
remote |
|
System.Byte[] |
buffer |
|
System.Int32 |
length |
|
IHostListener.OnHostReceiveUnconnected(IPEndPoint, Reader)
Declaration
void IHostListener.OnHostReceiveUnconnected(IPEndPoint remote, Reader message)
Parameters
Type |
Name |
Description |
IPEndPoint |
remote |
|
Reader |
message |
|
IHostListener.OnHostShutdown()
Declaration
void IHostListener.OnHostShutdown()
Implements