Export (0) Print
Expand All

3.2.4.2.4 Connecting to the Share

To connect to a share, the client MUST follow the steps outlined below.

The client MUST construct an SMB2 TREE_CONNECT Request using the syntax specified in section 2.2.9. The SMB2 header MUST be initialized as follows:

  • The Command field is set to SMB2 TREE_CONNECT.

  • The MessageId field is set as specified in section 3.2.4.1.3.

  • The SessionId field is set to Session.SessionId of the session that was identified in section 3.2.4.2 or established as a result of processing section 3.2.4.2.3.

The SMB2 TREE_CONNECT Request MUST be initialized as follows:

  • The target share path, including server name, in the format "\\server\share", is copied into the Buffer field of the request. PathOffset and PathLength MUST be set to describe the location and length of the target share path in the request.

This request MUST be sent to the server. The response from the server MUST be processed as described in section 3.2.5.5.

 
Show:
© 2014 Microsoft