Ejemplo n.º 1
0
        def sendCloseRequest(self):
            request = DeviceCloseRequestPDU(
                self.deviceID,
                self.fileID,
                self.requestID,
                0
            )

            self.sendIORequest(request)
Ejemplo n.º 2
0
 def parseDeviceCloseRequest(self, deviceId: int, fileId: int,
                             completionId: int, minorFunction: int,
                             stream: BytesIO) -> DeviceCloseRequestPDU:
     return DeviceCloseRequestPDU(deviceId, fileId, completionId,
                                  minorFunction)
Ejemplo n.º 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)