Click or drag to resize

NetManager Methods

The NetManager type exposes the following members.

Methods
 NameDescription
Protected methodAddPeerToSet
(Inherited from LiteNetManager)
Public methodConnect(IPEndPoint, NetDataWriter) Connect to remote host
Public methodConnect(IPEndPoint, ReadOnlySpanByte) Connect to remote host
Public methodConnect(IPEndPoint, String) Connect to remote host
Public methodConnect(String, Int32, NetDataWriter) Connect to remote host
Public methodConnect(String, Int32, String) Connect to remote host
Protected methodContainsPeer
(Inherited from LiteNetManager)
Protected methodCreateConnectionRequest
(Overrides LiteNetManagerCreateConnectionRequest(IPEndPoint, NetConnectRequestPacket))
Protected methodCreateIncomingPeer
(Overrides LiteNetManagerCreateIncomingPeer(LiteConnectionRequest, Int32))
Public methodCreateNtpRequest(IPEndPoint) Create the requests for NTP server
Public methodCreateNtpRequest(String) Create the requests for NTP server (default port)
Public methodCreateNtpRequest(String, Int32) Create the requests for NTP server
Protected methodCreateOutgoingPeer
(Overrides LiteNetManagerCreateOutgoingPeer(IPEndPoint, Int32, Byte, ReadOnlySpanByte))
Protected methodCreateRejectPeer
(Overrides LiteNetManagerCreateRejectPeer(IPEndPoint, Int32))
Public methodDisconnectAll Disconnect all peers without any additional data
(Inherited from LiteNetManager)
Public methodDisconnectAll(Byte, Int32, Int32) Disconnect all peers with shutdown message
(Inherited from LiteNetManager)
Public methodDisconnectPeer(LiteNetPeer) Disconnect peer from server
(Inherited from LiteNetManager)
Public methodDisconnectPeer(LiteNetPeer, NetDataWriter) Disconnect peer from server and send additional data (Size must be less or equal MTU - 8)
(Inherited from LiteNetManager)
Public methodDisconnectPeer(LiteNetPeer, Byte) Disconnect peer from server and send additional data (Size must be less or equal MTU - 8)
(Inherited from LiteNetManager)
Public methodDisconnectPeer(LiteNetPeer, Byte, Int32, Int32) Disconnect peer from server and send additional data (Size must be less or equal MTU - 8)
(Inherited from LiteNetManager)
Public methodDisconnectPeerForce Immediately disconnect peer from server without additional data
(Inherited from LiteNetManager)
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetConnectedPeers(ListLiteNetPeer) Get copy of connected peers (without allocations)
(Inherited from LiteNetManager)
Public methodGetConnectedPeers(ListNetPeer) Get copy of connected peers (without allocations)
Public methodGetEnumerator 
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetPeerById Gets peer by peer id
(Inherited from LiteNetManager)
Public methodGetPeers(ListLiteNetPeer, ConnectionState) Get copy of peers (without allocations)
(Inherited from LiteNetManager)
Public methodGetPeers(ListNetPeer, ConnectionState) Get copy of peers (without allocations)
Public methodGetPeersCount Return peers count with connection state
(Inherited from LiteNetManager)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodManualUpdate Updates internal peer states, handles timeouts, processes NTP requests and sends buffered packets.
(Inherited from LiteNetManager)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodPollEvents Synchronizes arrived events from the background thread to your main-thread/INetEventListener
(Inherited from LiteNetManager)
Protected methodProcessEvent
(Overrides LiteNetManagerProcessEvent(NetEvent))
Protected methodProcessNtpRequests
(Overrides LiteNetManagerProcessNtpRequests(Single))
Protected methodRemovePeerFromSet
(Inherited from LiteNetManager)
Public methodSendBroadcast(Byte, Int32)
(Inherited from LiteNetManager)
Public methodSendBroadcast(NetDataWriter, Int32)
(Inherited from LiteNetManager)
Public methodSendBroadcast(Byte, Int32, Int32, Int32)
(Inherited from LiteNetManager)
Public methodSendToAll(Byte, DeliveryMethod) Send data to all connected peers (channel - 0)
(Inherited from LiteNetManager)
Public methodSendToAll(NetDataWriter, DeliveryMethod) Send data to all connected peers (channel - 0)
(Inherited from LiteNetManager)
Public methodSendToAll(ReadOnlySpanByte, DeliveryMethod) Send data to all connected peers (channel - 0)
(Inherited from LiteNetManager)
Public methodSendToAll(Byte, DeliveryMethod, LiteNetPeer) Send data to all connected peers (channel - 0)
(Inherited from LiteNetManager)
Public methodSendToAll(Byte, Byte, DeliveryMethod) Send data to all connected peers
Public methodSendToAll(NetDataWriter, DeliveryMethod, LiteNetPeer) Send data to all connected peers (channel - 0)
(Inherited from LiteNetManager)
Public methodSendToAll(NetDataWriter, Byte, DeliveryMethod) Send data to all connected peers
Public methodSendToAll(ReadOnlySpanByte, DeliveryMethod, LiteNetPeer) Send data to all connected peers (channel - 0)
(Inherited from LiteNetManager)
Public methodSendToAll(Byte, Int32, Int32, DeliveryMethod) Send data to all connected peers (channel - 0)
(Inherited from LiteNetManager)
Public methodSendToAll(Byte, Byte, DeliveryMethod, LiteNetPeer) Send data to all connected peers
Public methodSendToAll(NetDataWriter, Byte, DeliveryMethod, LiteNetPeer) Send data to all connected peers
Public methodSendToAll(Byte, Int32, Int32, DeliveryMethod, LiteNetPeer) Send data to all connected peers
(Inherited from LiteNetManager)
Public methodSendToAll(Byte, Int32, Int32, Byte, DeliveryMethod) Send data to all connected peers
Public methodSendToAll(Byte, Int32, Int32, Byte, DeliveryMethod, LiteNetPeer) Send data to all connected peers
Public methodSendUnconnectedMessage(Byte, IPEndPoint) Send message without connection
(Inherited from LiteNetManager)
Public methodSendUnconnectedMessage(NetDataWriter, IPEndPoint) Send message without connection
(Inherited from LiteNetManager)
Public methodSendUnconnectedMessage(ReadOnlySpanByte, IPEndPoint) Send message without connection
(Inherited from LiteNetManager)
Public methodSendUnconnectedMessage(NetDataWriter, String, Int32) Send message without connection. WARNING This method allocates a new IPEndPoint object and synchronously makes a DNS request. If you're calling this method every frame it will be much faster to just cache the IPEndPoint.
(Inherited from LiteNetManager)
Public methodSendUnconnectedMessage(Byte, Int32, Int32, IPEndPoint) Send message without connection
(Inherited from LiteNetManager)
Public methodStart Start logic thread and listening on available port
(Inherited from LiteNetManager)
Public methodStart(Int32) Start logic thread and listening on selected port
(Inherited from LiteNetManager)
Public methodStart(IPAddress, IPAddress, Int32) Start logic thread and listening on selected port
(Inherited from LiteNetManager)
Public methodStart(String, String, Int32) Start logic thread and listening on selected port
(Inherited from LiteNetManager)
Public methodStart(IPAddress, IPAddress, Int32, Boolean) Start logic thread and listening on selected port
(Inherited from LiteNetManager)
Public methodStartInManualMode(Int32) Start in manual mode and listening on selected port In this mode you should use ManualReceive (without PollEvents) for receive packets and ManualUpdate(...) for update and send packets This mode useful mostly for single-threaded servers
(Inherited from LiteNetManager)
Public methodStartInManualMode(IPAddress, IPAddress, Int32) Start in manual mode and listening on selected port In this mode you should use ManualReceive (without PollEvents) for receive packets and ManualUpdate(...) for update and send packets This mode useful mostly for single-threaded servers
(Inherited from LiteNetManager)
Public methodStartInManualMode(String, String, Int32) Start in manual mode and listening on selected port In this mode you should use ManualReceive (without PollEvents) for receive packets and ManualUpdate(...) for update and send packets This mode useful mostly for single-threaded servers
(Inherited from LiteNetManager)
Public methodStop Force closes connection and stop all threads.
(Inherited from LiteNetManager)
Public methodStop(Boolean) Force closes connection and stop all threads.
(Inherited from LiteNetManager)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodTriggerUpdate Triggers update and send logic immediately (works asynchronously)
(Inherited from LiteNetManager)
Public methodTryGetPeerById Gets peer by peer id
(Inherited from LiteNetManager)
Top
Extension Methods
 NameDescription
Public Extension MethodForEachNetPeer
(Defined by RcCollectionExtensions)
Public Extension MethodMethodInvoke Calls the object method by name.
(Defined by ObjectEx)
Public Extension MethodPropertyGet Gets the value of the object property by name.
(Defined by ObjectEx)
Public Extension MethodPropertyGetT Gets the value of the object property by name.
(Defined by ObjectEx)
Public Extension MethodPropertySet Sets the value of the object property by name.
(Defined by ObjectEx)
Top
See Also