/// <summary> /// Send rap request payLoad to server /// </summary> /// <param name="request">The request packet</param> /// <returns>The messageId of the sent packet</returns> public virtual ushort SendRapPayload(FsRapRequest request) { SmbTransRapRequestPacket transRequest = smbClient.CreateTransNamedRapRequest(treeId, TransSmbParametersFlags.NONE, request.TransParameters.RapOPCode, request.TransParameters.ParamDesc, request.TransParameters.DataDesc, request.TransParameters.RAPParamsAndAuxDesc, request.transData.RAPInData); if (isSignRequired) { transRequest.Sign(NextSequenceNumber, sessionKey); } smbClient.SendPacket(transRequest); return(transRequest.SmbHeader.Mid); }
/// <summary> /// Send rap request payLoad to server /// </summary> /// <param name="request">The request packet</param> /// <returns>The messageId of the sent packet</returns> public virtual ushort SendRapPayload(FsRapRequest request) { SmbTransRapRequestPacket transRequest = smbClient.CreateTransNamedRapRequest(treeId, TransSmbParametersFlags.NONE, request.TransParameters.RapOPCode, request.TransParameters.ParamDesc, request.TransParameters.DataDesc, request.TransParameters.RAPParamsAndAuxDesc, request.transData.RAPInData); if (isSignRequired) { transRequest.Sign(NextSequenceNumber, sessionKey); } smbClient.SendPacket(transRequest); return transRequest.SmbHeader.Mid; }