Example #1
0
        def sendCloseRequest(self):
            request = DeviceCloseRequestPDU(
                self.deviceID,
                self.fileID,
                self.requestID,
                0
            )

            self.sendIORequest(request)
Example #2
0
 def parseDeviceCloseRequest(self, deviceId: int, fileId: int,
                             completionId: int, minorFunction: int,
                             stream: BytesIO) -> DeviceCloseRequestPDU:
     return DeviceCloseRequestPDU(deviceId, fileId, completionId,
                                  minorFunction)
Example #3
0
 def parseDeviceCloseRequest(self, deviceID: int, fileID: int, completionID: int, minorFunction: int, stream: BytesIO) -> DeviceCloseRequestPDU:
     stream.read(32)  # Padding
     return DeviceCloseRequestPDU(deviceID, fileID, completionID, minorFunction)