Show / Hide Table of Contents

# Class NetConstants

Network constants. Can be tuned from sources for your purposes.

##### Inheritance

object
NetConstants

###### Namespace: LiteNetLib

###### Assembly: LiteNetLib.dll

##### Syntax

    public static class NetConstants

### Fields

#### ChanneledHeaderSize

##### Declaration

    public const int ChanneledHeaderSize = 4

##### Field Value

Type | Description
--- | ---
int |

#### DefaultWindowSize

##### Declaration

    public const int DefaultWindowSize = 64

##### Field Value

Type | Description
--- | ---
int |

#### FragmentHeaderSize

##### Declaration

    public const int FragmentHeaderSize = 6

##### Field Value

Type | Description
--- | ---
int |

#### FragmentedHeaderTotalSize

##### Declaration

    public const int FragmentedHeaderTotalSize = 10

##### Field Value

Type | Description
--- | ---
int |

#### HalfMaxSequence

##### Declaration

    public const ushort HalfMaxSequence = 16384

##### Field Value

Type | Description
--- | ---
ushort |

#### HeaderSize

##### Declaration

    public const int HeaderSize = 1

##### Field Value

Type | Description
--- | ---
int |

#### MaxConnectionNumber

##### Declaration

    public const byte MaxConnectionNumber = 4

##### Field Value

Type | Description
--- | ---
byte |

#### MaxPacketSize

##### Declaration

    public static readonly int MaxPacketSize

##### Field Value

Type | Description
--- | ---
int |

#### MaxSequence

##### Declaration

    public const ushort MaxSequence = 32768

##### Field Value

Type | Description
--- | ---
ushort |

#### MaxUnreliableDataSize

##### Declaration

    public static readonly int MaxUnreliableDataSize

##### Field Value

Type | Description
--- | ---
int |

#### SocketBufferSize

##### Declaration

    public const int SocketBufferSize = 1048576

##### Field Value

Type | Description
--- | ---
int |

#### SocketTTL

##### Declaration

    public const int SocketTTL = 255

##### Field Value

Type | Description
--- | ---
int |