Enables receive timeout, if this feature is supported by the driver. When the receive timeout condition becomes true, a
read
from the input stream for this port will return immediately.
enableReceiveTimeout
is an advisory method which the driver may not implement. By default, receive timeout is not enabled.
An application can determine whether the driver supports this feature by first calling the enableReceiveTimeout
method and then calling the isReceiveTimeout
method. If isReceiveTimeout
still returns false, then receive timeout is not supported by the driver.
See getInputStream
for description of exact behaviour.
@param rcvTimeout when this many milliseconds have elapsed, return immediately from read, regardless of bytes in input buffer.