Show / Hide Table of Contents

# Struct DisconnectInfo

Additional information about disconnection

###### Namespace: LiteNetLib

###### Assembly: LiteNetLib.dll

##### Syntax

    public struct DisconnectInfo

### Fields

#### AdditionalData

Additional data that can be accessed (only if reason is RemoteConnectionClose)

##### Declaration

    public NetPacketReader AdditionalData

##### Field Value

Type | Description
--- | ---
NetPacketReader |

#### Reason

Additional info why peer disconnected

##### Declaration

    public DisconnectReason Reason

##### Field Value

Type | Description
--- | ---
DisconnectReason |

#### SocketErrorCode

Error code (if reason is SocketSendError or SocketReceiveError)

##### Declaration

    public SocketError SocketErrorCode

##### Field Value

Type | Description
--- | ---
SocketError |