Click or drag to resize

NetDataWriterPut(IPEndPoint) Method

Serializes an IPEndPoint.

Namespace: LiteNetLib.Utils
Assembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.2.1.0 (2026.2.1.0)
Syntax
C#
public void Put(
	IPEndPoint endPoint
)

Parameters

endPoint  IPEndPoint
The network endpoint to write.
Exceptions
ExceptionCondition
ArgumentExceptionThrown when the AddressFamily is not InterNetwork or InterNetworkV6.
Remarks
Writes a Byte (0 for IPv4, 1 for IPv6), followed by the address bytes and a 2-byte UInt16 port.
See Also