Skip navigation links
JNA API 4.2.1
com.sun.jna.platform.win32

Class WinBase.COMMTIMEOUTS

  • Enclosing interface:
    WinBase


    public static class WinBase.COMMTIMEOUTS
    extends Structure
    Contains the time-out parameters for a communications device. The parameters determine the behavior of Kernel32#ReadFile(com.sun.jna.platform.win32.WinNT.HANDLE, java.nio.Buffer, int, com.sun.jna.ptr.IntByReference, com.sun.jna.platform.win32.WinBase.OVERLAPPED) , Kernel32#WriteFile(com.sun.jna.platform.win32.WinNT.HANDLE, byte[], int, com.sun.jna.ptr.IntByReference, com.sun.jna.platform.win32.WinBase.OVERLAPPED)), ReadFileEx, and WriteFileEx operations on the device.

    Remarks
    If an application sets ReadIntervalTimeout and ReadTotalTimeoutMultiplier to MAXDWORD and sets ReadTotalTimeoutConstant to a value greater than zero and less than MAXDWORD, one of the following occurs when the ReadFile function is called:
  • If there are any bytes in the input buffer, ReadFile returns immediately with the bytes in the buffer.
  • If there are no bytes in the input buffer, ReadFile waits until a byte arrives and then returns immediately.
  • If no bytes arrive within the time specified by ReadTotalTimeoutConstant, ReadFile times out.
Author:
Markus
JNA API 4.2.1

Copyright © 2007-2015 Timothy Wall. All Rights Reserved.