Lite |
public class LiteNetPeer : IPEndPoint
The LiteNetPeer type exposes the following members.
| Name | Description | |
|---|---|---|
| Address | Gets or sets the IP address of the endpoint. (Inherited from IPEndPoint) | |
| AddressFamily | Gets the Internet Protocol (IP) address family. (Inherited from IPEndPoint) | |
| ChannelsCount | ||
| ConnectionState | Current connection state | |
| Mtu | Current MTU - Maximum Transfer Unit ( maximum udp packet size without fragmentation ) | |
| Ping | Current one-way ping (RTT/2) in milliseconds | |
| Port | Gets or sets the port number of the endpoint. (Inherited from IPEndPoint) | |
| RemoteId | Id assigned from server | |
| RemoteTimeDelta | Delta with remote time in ticks (not accurate) positive - remote time > our time | |
| RemoteUtcTime | Remote UTC time (not accurate) | |
| RoundTripTime | Round trip time in milliseconds | |
| TimeSinceLastPacket | Time since last packet received (including internal library packets) in milliseconds |
| Name | Description | |
|---|---|---|
| Create | Creates an endpoint from a socket address. (Inherited from IPEndPoint) | |
| CreatePacketFromPool | Create temporary packet (maximum size MTU - headerSize) to send later without additional copies | |
| Disconnect | ||
| Disconnect(Byte) | ||
| Disconnect(NetDataWriter) | ||
| Disconnect(Byte, Int32, Int32) | ||
| Equals | Determines whether the specified Object is equal to the current Object. (Inherited from IPEndPoint) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) | |
| GetHashCode | (Overrides IPEndPointGetHashCode) | |
| GetMaxSinglePacketSize | Gets maximum size of packet that will be not fragmented. | |
| GetPacketsCountInReliableQueue | Returns packets count in queue for reliable channel 0 | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | |
| Send(Byte, DeliveryMethod) | Send data to peer (channel - 0) | |
| Send(NetDataWriter, DeliveryMethod) | Send data to peer (channel - 0) | |
| Send(ReadOnlySpanByte, DeliveryMethod) | Send data to peer (channel - 0) | |
| Send(Byte, Int32, Int32, DeliveryMethod) | Send data to peer (channel - 0) | |
| SendInternal | ||
| SendPooledPacket | Sends pooled packet without data copy | |
| SendWithDeliveryEvent(Byte, DeliveryMethod, Object) | Send data to peer with delivery event called | |
| SendWithDeliveryEvent(NetDataWriter, DeliveryMethod, Object) | Send data to peer with delivery event called | |
| SendWithDeliveryEvent(ReadOnlySpanByte, DeliveryMethod, Object) | Send data to peer with delivery event called | |
| SendWithDeliveryEvent(Byte, Int32, Int32, DeliveryMethod, Object) | Send data to peer with delivery event called | |
| Serialize |
IPEndPoint serialize
(Overrides IPEndPointSerialize) | |
| ToString | Returns the IP address and port number of the specified endpoint. (Inherited from IPEndPoint) | |
| UpdateChannels |
| Name | Description | |
|---|---|---|
| Id | Peer id can be used as key in your dictionary of peers | |
| NetManager | Peer parent NetManager | |
| ResendFixedDelay | Fixed part of the resend delay | |
| ResendRttMultiplier | Multiplication factor of Rtt in the resend delay calculation | |
| Statistics | Statistics of peer connection | |
| Tag | Application defined object containing data about the connection |
| Name | Description | |
|---|---|---|
| MethodInvoke |
Calls the object method by name.
(Defined by ObjectEx) | |
| PropertyGet |
Gets the value of the object property by name.
(Defined by ObjectEx) | |
| PropertyGetT |
Gets the value of the object property by name.
(Defined by ObjectEx) | |
| PropertySet |
Sets the value of the object property by name.
(Defined by ObjectEx) |