Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Telepathy Communications Library - <b>tp_flush()</b> - flush output buffer http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
   tp_flush() - flush output buffer

   nError := tp_flush(nPort, [nTimeout])

   nPort       Serial port number.
   nTimeout    Port timeout, default -1.

   Returns     Error code.

   Waits until the output buffer is empty.  nTimeout is the maximum
   number of seconds to wait, up to 1800 seconds, or -1 to wait forever.

   Example:

       tp_send(1, "Logged off at " + time() + chr(13) + chr(10))
       tp_flush(1, 10)     // Wait till message sent....
       HangupModem()       // ...before hanging up.

See Also: tp_clearout() tp_outchrs() Error Codes

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