Class LiteNetConsoleClient
Inheritance
LiteNetConsoleClient
Implements
INetEventListener
Assembly: cs.temp.dll.dll
Syntax
public class LiteNetConsoleClient : IConsoleClient
Constructors
LiteNetConsoleClient()
Declaration
public LiteNetConsoleClient()
Properties
IsConnected
Declaration
public bool IsConnected { get; }
Property Value
IsTryingToConnect
Declaration
public bool IsTryingToConnect { get; }
Property Value
LocalPort
Declaration
public ushort LocalPort { get; }
Property Value
ServerAddress
Declaration
public IPEndPoint ServerAddress { get; }
Property Value
Type |
Description |
IPEndPoint |
|
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 |
|
SendCommandString(String)
Declaration
public void SendCommandString(string commandString)
Parameters
Type |
Name |
Description |
String |
commandString |
|
StartAndConnect(IPEndPoint, UserCredentials)
Declaration
public async Task<bool> StartAndConnect(IPEndPoint endPoint, UserCredentials credentials)
Parameters
Returns
Update()
Declaration
Events
OnConnectionTimeoutEvent
Declaration
public event Action OnConnectionTimeoutEvent
Event Type
OnLogReceivedEvent
Declaration
public event Action<string, LogType> OnLogReceivedEvent
Event Type
OnRemoteCommandConfigReceivedEvent
Declaration
public event Action<byte[]> OnRemoteCommandConfigReceivedEvent
Event Type
Type |
Description |
Action<Byte[]> |
|
OnRemoteCommandParameterValuesChangedReceivedEvent
Declaration
public event Action<byte[]> OnRemoteCommandParameterValuesChangedReceivedEvent
Event Type
Type |
Description |
Action<Byte[]> |
|
Implements
INetEventListener