共用方式為


3.3.5.1 Accepting an Incoming Connection

When the server accepts an incoming remote client connection as specified in section 3.3.7.3, the server  MUST allocate a Server.Connection ADM element and initialize it as follows:

  • Server.Connection.ClientCapabilities is set to zero (0x00000000).

  • Server.Connection.TransportName is set to the implementation-specific name of the transport provided with the connection.<236>

  • Server.Connection.IsSigningActive is set to FALSE.

  • Server.Connection.SessionSetupReceived is FALSE.

  • Server.Connection.SessionTable is an empty list.

  • Server.Connection.ClientMaxBufferSize is set to zero (0x00000000).

  • Server.Connection.PendingRequestTable is empty.

  • Server.Connection.TreeConnectTable is an empty list.

  • Server.Connection.OpLockSupport is set to the value of Server.EnableOplock.

  • Server.Connection.FileOpenTable is an empty list.

  • Server.Connection.SearchOpenTable is an empty list.

  • Server.Connection.ConnectionlessSessionID is set to zero (0x0000) unless the transport is connectionless, in which case a valid value is assigned.

  • Server.Connection.ServerNextReceiveSequenceNumber is set to 2.

  • Server.Connection.ServerSendSequenceNumber is set to an empty list.

  • Server.Connection.SigningChallengeResponse is a zero-length array.

  • Server.Connection.SigningSessionKey is zeroed.

  • Server.Connection.SessionKey SHOULD<237> be set to a token generated by the server for this connection, as specified in SessionKey Generation (section 2.2.1.6.6).

  • Server.Connection.IdleTime is set to the current time plus Server.AutoDisconnectTimeout.

  • Server.Connection.SelectedDialect is set to empty.

  • Server.Connection.CreationTime is set to the current time.

The server MUST invoke the event specified in [MS-SRVS] section 3.1.6.16, providing the input tuple <Server.Connection.TransportName,TRUE>, to update the connection count.

The server MUST start Idle Connection Timer (section 3.3.2.2) if it has not been started.

The server MUST start Unused Connection Timer (section 3.3.2.4) if it has not been started.