LiteNetPeerSend(ReadOnlySpanByte, DeliveryMethod) Method |
Send data to peer (channel - 0)
Namespace: LiteNetLibAssembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.2.1.0 (2026.2.1.0)
Syntaxpublic void Send(
ReadOnlySpan<byte> data,
DeliveryMethod deliveryMethod
)
Parameters
- data ReadOnlySpanByte
- Data
- deliveryMethod DeliveryMethod
- Send options (reliable, unreliable, etc.)
Exceptions| Exception | Condition |
|---|
| TooBigPacketException |
If size exceeds maximum limit:
MTU - headerSize bytes for Unreliable
Fragment count exceeded ushort.MaxValue |
See Also