Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper Tools . Books 1-3 - <b>com_soft_s()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 COM_SOFT_S()
 Tests to see if the buffer has automatically sent an XOFF character
------------------------------------------------------------------------------
 Syntax

     COM_SOFT_S(<nComPort>) --> lXOFFFlag

 Argument

     <nComPort>  Designates the port (1 to 4) for which the XOFF flag is
     tested.

 Returns

     This function returns .T. when the remote station indicates that the
     buffer is 75% or more full.

 Description

     If the software handshake has been selected and the buffer is more than
     75% full, an XOFF character is automatically transmitted to the remote
     station.  This is noted with an internal flag, which can be queried
     using COM_SOFT_S().  When the buffer empties to 50% or less, it
     generates the transmission of an XON character, and this flag is reset.

 Note

     .  When selecting the size of the buffer, decide whether the
        remaining 25% will be sufficient at high baud rates.

 Example

     Test to see if a 75% full buffer automatically transmits an XOFF
     character:

     IF = COM_SOFT_S(1)
        ? "It's time to empty the buffer! "
        ...
     ENDIF


See Also: COM_READ() COM_SOFT()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson