Click or drag to resize

NetPeer Methods

The NetPeer type exposes the following members.

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