3.2.5.39.2 Receiving a TRANS2_FIND_FIRST2 or TRANS2_FIND_NEXT2 Response

Upon receipt of a TRANS2_FIND_FIRST2 or TRANS2_FIND_NEXT2 subcommand response, the client MUST forward any errors to the application. If the search succeeds, or if the Status indicates an error in the processing of the GetExtendedAttributeList in the request, the client MUST determine whether the search has been closed by the server or is still active.

If the search is still active, the client MUST forward the SID, EndOfSearch, and LastNameOffset values to the application. Otherwise, the client MUST notify the application that the search has been closed.

If the search is still active, and the message is a TRANS2_FIND_FIRST2 subcommand response, the client MUST create a new SearchOpen entry in the Server.Connection.SearchOpenTable to store the returned SID and the associated TreeConnect.

Whether the search is closed or not, the client MUST also pass the SearchCount value to the application, along with the list of search entries returned in the Trans2_Data block of the response. If the value of EaErrorOffset is nonzero and the Status field indicates an error in the processing of the GetExtendedAttributeList in the request, the client MUST pass the value of EaErrorOffset to the application.