Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Faxual II for CA-Clipper - serhandshake http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 SerHandshake
 Get/set handshaking
------------------------------------------------------------------------------
 Syntax

    SerHandshake(<nPort>, [<cNewOpts>]) -> cOldOpts

 Parameters

    <nPort> is a serial port number.

    <cNewOpts> is the new handshake option string.

 Returns

    Old handshake option string.

 Description

    The handshake string is a string of options (multiple options separated
    by commas) that controls the serial port's handshaking and flow control.
    The string is case-insensitive.  Individual options are:

    Handshake Options
    ----------------------------------------------------------------------
    Option      Effect
    ----------------------------------------------------------------------
    "DTR-"      Turn off DTR (Data Terminal Ready).
    "DTR+"    * Turn on DTR.
    "DTR~"      Use DTR for input flow control.  Not recommended for use
                with modems.
    "RTS-"      Turn off RTS (Request To Send).
    "RTS+"    * Turn on RTS.
    "RTS~"      Use RTS for input flow control.  This is the normal hardware
                input flow control for modems.
    "SXFLOW-" * Disable XON/XOFF input flow control.
    "SXFLOW+"   Enable XON/XOFF input flow control.
    "DSR-"    * Ignore DSR (Data Set Ready).
    "DSR~"      Use DSR for output flow control.  Not recommended.
    "CTS-"    * Ignore CTS (Clear To Send).
    "CTS~"      Use CTS for output flow control.  This is the normal
                hardware output flow control for modems.
    "DCD-"    * Ignore DCD (Data Carrier Detect).
    "DCD~"      Require DCD for input and output.
    "RXFLOW-" * Disable XON/XOFF output flow control.
    "RXFLOW+"   Enable XON/XOFF output flow control.
    ----------------------------------------------------------------------
    * = Default

    Setting SerHandshake() has no effect on FaxSend(), which takes control
    of the port's handshake setting automatically.  It is only useful when
    you are talking to the serial port using SerSend() or SerReceive().

 Example

    // Enable RTS/CTS flow control on COM1.

    SerHandshake(1, "rts~,cts~")

See Also:

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