Click or drag to resize

LiteNetPeer Methods

The LiteNetPeer type exposes the following members.

Methods
 NameDescription
Public methodCreateCreates an endpoint from a socket address.
(Inherited from IPEndPoint)
Public methodCreatePacketFromPool Create temporary packet (maximum size MTU - headerSize) to send later without additional copies
Public methodDisconnect 
Public methodDisconnect(Byte) 
Public methodDisconnect(NetDataWriter) 
Public methodDisconnect(Byte, Int32, Int32) 
Public methodEqualsDetermines whether the specified Object is equal to the current Object.
(Inherited from IPEndPoint)
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 methodGetHashCode
(Overrides IPEndPointGetHashCode)
Public methodGetMaxSinglePacketSize Gets maximum size of packet that will be not fragmented.
Public methodGetPacketsCountInReliableQueue Returns packets count in queue for reliable channel 0
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodSend(Byte, DeliveryMethod) Send data to peer (channel - 0)
Public methodSend(NetDataWriter, DeliveryMethod) Send data to peer (channel - 0)
Public methodSend(ReadOnlySpanByte, DeliveryMethod) Send data to peer (channel - 0)
Public methodSend(Byte, Int32, Int32, DeliveryMethod) Send data to peer (channel - 0)
Protected methodSendInternal 
Public methodSendPooledPacket Sends pooled packet without data copy
Public methodSendWithDeliveryEvent(Byte, DeliveryMethod, Object) Send data to peer with delivery event called
Public methodSendWithDeliveryEvent(NetDataWriter, DeliveryMethod, Object) Send data to peer with delivery event called
Public methodSendWithDeliveryEvent(ReadOnlySpanByte, DeliveryMethod, Object) Send data to peer with delivery event called
Public methodSendWithDeliveryEvent(Byte, Int32, Int32, DeliveryMethod, Object) Send data to peer with delivery event called
Public methodSerialize IPEndPoint serialize
(Overrides IPEndPointSerialize)
Public methodToStringReturns the IP address and port number of the specified endpoint.
(Inherited from IPEndPoint)
Protected methodUpdateChannels 
Top
Extension Methods
 NameDescription
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