TIMEOUT

TIMEOUT

Top  Previous  Next

 

The TIMEOUT statement sets a timeout for READBLK and READSEQ.

 

 

Format

 

TIMEOUT file.var, interval

 

where

 

file.varis the file variable associated with a file opened using OPENSEQ.

 

intervalis the timeout period in seconds. A negative value disables the timeout.

 

 

 

The TIMEOUT statement can be used when OPENSEQ is used to open a FIFO (named pipe) or a serial port. If no input is received by READBLK or READSEQ in the given interval, the read terminates.

 

The TIMEOUT statement is ignored on Windows systems and for files that are not FIFOs or serial ports.