Class LiteNetBroadcastClient
Inheritance
LiteNetBroadcastClient
Implements
INetEventListener
Assembly: cs.temp.dll.dll
Syntax
public class LiteNetBroadcastClient : IBroadcastClient
Constructors
LiteNetBroadcastClient()
Declaration
public LiteNetBroadcastClient()
Properties
IsBroadcasting
Declaration
public bool IsBroadcasting { get; }
Property Value
Methods
Dispose()
Declaration
OnConnectionRequest(ConnectionRequest)
Declaration
public void OnConnectionRequest(ConnectionRequest request)
Parameters
Type |
Name |
Description |
ConnectionRequest |
request |
|
OnNetworkError(IPEndPoint, SocketError)
Declaration
public void OnNetworkError(IPEndPoint endPoint, SocketError socketError)
Parameters
Type |
Name |
Description |
IPEndPoint |
endPoint |
|
SocketError |
socketError |
|
OnNetworkLatencyUpdate(NetPeer, Int32)
Declaration
public void OnNetworkLatencyUpdate(NetPeer peer, int latency)
Parameters
Type |
Name |
Description |
NetPeer |
peer |
|
Int32 |
latency |
|
OnNetworkReceive(NetPeer, NetPacketReader, DeliveryMethod)
Declaration
public void OnNetworkReceive(NetPeer peer, NetPacketReader reader, DeliveryMethod deliveryMethod)
Parameters
Type |
Name |
Description |
NetPeer |
peer |
|
NetPacketReader |
reader |
|
DeliveryMethod |
deliveryMethod |
|
OnNetworkReceiveUnconnected(IPEndPoint, NetPacketReader, UnconnectedMessageType)
Declaration
public void OnNetworkReceiveUnconnected(IPEndPoint remoteEndPoint, NetPacketReader reader, UnconnectedMessageType messageType)
Parameters
Type |
Name |
Description |
IPEndPoint |
remoteEndPoint |
|
NetPacketReader |
reader |
|
UnconnectedMessageType |
messageType |
|
OnPeerConnected(NetPeer)
Declaration
public void OnPeerConnected(NetPeer peer)
Parameters
Type |
Name |
Description |
NetPeer |
peer |
|
OnPeerDisconnected(NetPeer, DisconnectInfo)
Declaration
public void OnPeerDisconnected(NetPeer peer, DisconnectInfo disconnectInfo)
Parameters
Type |
Name |
Description |
NetPeer |
peer |
|
DisconnectInfo |
disconnectInfo |
|
StartBroadcast(IPAddress, UInt16)
Declaration
public void StartBroadcast(IPAddress bindIp, ushort serverPort)
Parameters
Type |
Name |
Description |
IPAddress |
bindIp |
|
UInt16 |
serverPort |
|
Update()
Declaration
Events
OnBroadcastResponseReceivedEvent
Declaration
public event Action<IPEndPoint> OnBroadcastResponseReceivedEvent
Event Type
Type |
Description |
Action<IPEndPoint> |
|
Implements
INetEventListener