Net |
The NetConstants type exposes the following members.
| Name | Description | |
|---|---|---|
| ChanneledHeaderSize |
Size of the header for sequenced or reliable messages in Bytes. Includes HeaderSize, Sequence, and ChannelId. | |
| DefaultWindowSize | Default window size for reliable channels (number of packets). | |
| FragmentedHeaderTotalSize |
Total header size for a fragmented channeled packet in Bytes. Combines ChanneledHeaderSize and FragmentHeaderSize. | |
| FragmentHeaderSize |
Additional header size required for fragmented packets in Bytes. Includes FragmentId, FragmentPart, and FragmentsTotal. | |
| HalfMaxSequence | Half of the MaxSequence, used for sequence comparison and wrap-around logic. | |
| HeaderSize | Size of the base packet header (PacketProperty) in Bytes. | |
| InitialMtu | The starting Maximum Transmission Unit (MTU) used for new connections before path MTU discovery. | |
| MaxConnectionNumber | Maximum possible value for ConnectionNumber. | |
| MaxPacketSize | Maximum possible packet size allowed by the library based on the largest supported MTU. | |
| MaxSequence | Maximum possible sequence number before wrapping back to zero. | |
| MaxUnreliableDataSize |
Maximum payload size for a single unreliable packet in Bytes. Calculated as MaxPacketSize - HeaderSize. | |
| SocketBufferSize |
Size of the underlying UDP socket receive and send buffers in bytes. Default is 1MB. | |
| SocketTTL | Time To Live (TTL) for the UDP packets. |