4.1.3 Requesting Node Sends a Connect Message

Now that the Password-Based Security handshake is successful, the requesting node sends a Connect message.

An example of a Connect message follows.

 <s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope"
             xmlns:wsa10="http://www.w3.org/2005/08/addressing">
   <s:Header>
     <wsa10:Action s:mustUnderstand="1">http://schemas.microsoft.com/net/20
 06/05/peer/Connect</wsa10:Action>
     <wsa10:To s:mustUnderstand="1">net.p2p://securechatmesh/</wsa10:To>
   </s:Header>
   <s:Body>
     <Connect xmlns="http://schemas.microsoft.com/net/2006/05/peer" xml
 ns:i="http://www.w3.org/2001/XMLSchema-instance">
       <Address>
         <EndpointAddress>
           <wsa10:Address>net.tcp://160.20.30.40:63758/Peer ChannelEndpoint
 s/ba703e02-6a7b-457c-bf81-f0d6e56adb97</wsa10:Address>
         </EndpointAddress>
         <IPAddresses xmlns:b="http://schemas.datacontract.org/2004/07/
 System.Net">
           <b:IPAddress>
             <b:m_Address>0</b:m_Address>
             <b:m_Family>InterNetworkV6</b:m_Family>
             <b:m_HashCode>0</b:m_HashCode>
             <b:m_Numbers xmlns:c="http://schemas.microsoft.com/2003/10
 /Serialization/Arrays">
               <c:unsignedShort>8193</c:unsignedShort>
               <c:unsignedShort>125</c:unsignedShort>
               <c:unsignedShort>40</c:unsignedShort>
               <c:unsignedShort>3</c:unsignedShort>
               <c:unsignedShort>246</c:unsignedShort>
               <c:unsignedShort>345</c:unsignedShort>
               <c:unsignedShort>456</c:unsignedShort>
               <c:unsignedShort>567</c:unsignedShort>
             </b:m_Numbers>
             <b:m_ScopeId>0</b:m_ScopeId>
           </b:IPAddress>
           <b:IPAddress>
             <b:m_Address>3750312861</b:m_Address>
             <b:m_Family>InterNetwork</b:m_Family>
             <b:m_HashCode>0</b:m_HashCode>
             <b:m_Numbers xmlns:c="http://schemas.microsoft.com/2003/10
 /Serialization/Arrays">
               <c:unsignedShort>0</c:unsignedShort>
               <c:unsignedShort>0</c:unsignedShort>
               <c:unsignedShort>0</c:unsignedShort>
               <c:unsignedShort>0</c:unsignedShort>
               <c:unsignedShort>0</c:unsignedShort>
               <c:unsignedShort>0</c:unsignedShort>
               <c:unsignedShort>0</c:unsignedShort>
               <c:unsignedShort>0</c:unsignedShort>
             </b:m_Numbers>
             <b:m_ScopeId>0</b:m_ScopeId>
           </b:IPAddress>
           <b:IPAddress>
             <b:m_Address>0</b:m_Address>
             <b:m_Family>InterNetworkV6</b:m_Family>
             <b:m_HashCode>0</b:m_HashCode>
             <b:m_Numbers xmlns:c="http://schemas.microsoft.com/2003/10
 /Serialization/Arrays">
               <c:unsignedShort>65152</c:unsignedShort>
               <c:unsignedShort>0</c:unsignedShort>
               <c:unsignedShort>0</c:unsignedShort>
               <c:unsignedShort>0</c:unsignedShort>
               <c:unsignedShort>27023</c:unsignedShort>
               <c:unsignedShort>28969</c:unsignedShort>
               <c:unsignedShort>48266</c:unsignedShort>
               <c:unsignedShort>44428</c:unsignedShort>
             </b:m_Numbers>
             <b:m_ScopeId>0</b:m_ScopeId>
           </b:IPAddress>
         </IPAddresses>
       </Address>
       <NodeId>14800704070183415334</NodeId>
     </Connect>
   </s:Body>
 </s:Envelope>