2.2.2.5 DisconnectReason Enumeration

The DisconnectReason enumeration describes the reason a neighbor connection is closed.

 Namespace: http://schemas.datacontract.org/2004/07/System.ServiceModel.Channels
 <xs:simpleType name="DisconnectReason">
       <xs:restriction base="xs:string">
         <xs:enumeration value="LeavingMesh">
           <xs:annotation>
             <xs:appinfo>
               <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">2</EnumerationValue>
             </xs:appinfo>
           </xs:annotation>
         </xs:enumeration>
         <xs:enumeration value="NotUsefulNeighbor">
           <xs:annotation>
             <xs:appinfo>
               <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">3</EnumerationValue>
             </xs:appinfo>
           </xs:annotation>
         </xs:enumeration>
         <xs:enumeration value="DuplicateNeighbor">
           <xs:annotation>
             <xs:appinfo>
               <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">4</EnumerationValue>
             </xs:appinfo>
           </xs:annotation>
         </xs:enumeration>
         <xs:enumeration value="DuplicateNodeId">
           <xs:annotation>
             <xs:appinfo>
               <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">5</EnumerationValue>
             </xs:appinfo>
           </xs:annotation>
         </xs:enumeration>
         <xs:enumeration value="NodeBusy">
           <xs:annotation>
             <xs:appinfo>
               <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">6</EnumerationValue>
             </xs:appinfo>
           </xs:annotation>
         </xs:enumeration>
         <xs:enumeration value="InternalFailure">
           <xs:annotation>
             <xs:appinfo>
               <EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">10</EnumerationValue>
             </xs:appinfo>
           </xs:annotation>
         </xs:enumeration>
       </xs:restriction>
     </xs:simpleType>
 <xs:element name="DisconnectReason" nillable="true" type="tns:DisconnectReason" />

Element

Description

LeavingMesh

The disconnecting node is leaving the mesh.

NotUsefulNeighbor

The receiving node that is receiving the message has been determined to be less useful than other neighbor nodes, as given by the sending node. See LinkUtility message in section 2.2.3.8.

DuplicateNeighbor

A connection to the receiving node already exists.

DuplicateNodeId

A connection to a node with the same NodeId as the receiving node already exists.

NodeBusy

The receiving node is already serving up to the maximum number of allowed peers.

InternalFailure

An unhandled internal failure caused this connection to be closed.