Click or drag to resize

PipeStreamWriteUseShortPacket Property

Gets or sets a value indicating if a short packet should be used to signal to the USB device that the host has no more data to send.

Namespace:  WinUsbNet
Assembly:  WinUsbNet (in WinUsbNet.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public bool WriteUseShortPacket { get; set; }

Property Value

Type: Boolean

true if a short packet will be used; otherwise false.

Exceptions
ExceptionCondition
NotSupportedExceptionThe PipeStream does not support writing.
Remarks

This property only has an affect when the number of bytes transferred by the Write method happens to equal a multiple of WriteMaxPacketSize, the maximum packet size for the USB endpoint. In that case, if the WriteUseShortPacket property is true, then a zero-length packet will be sent after the data.

If the WriteUseShortPacket property is false, then a zero-length packet will never be added.

See Also