Annotation of coherent/a/usr/bob/uusrc/modemcap/modemcap.h, revision 1.1

1.1     ! root        1: /* 
        !             2:  *      @(#)modemcap.h  1.0
        !             3:  *
        !             4:  *      names of variables and whatnots for modemcap file
        !             5:  */
        !             6: 
        !             7: extern
        !             8: char    AS, /* True if numbers dialed in ASCII, False for binary digits     */
        !             9:         DI, /* True if modem can dial numbers, False otherwise              */
        !            10:         HC, /* True if modem hangs up when DTR drops, False otherwise       */
        !            11:         TT; /* True if modem uses touchtone by default, False for pulse     */
        !            12: extern
        !            13: char    *AT, /* Enter command state when online                             */
        !            14:         *CS, /* Command start string                                        */
        !            15:         *CE, /* Command end string - must be present if CS is               */
        !            16:         *DS, /* Dial command string                                         */
        !            17:         *DE, /* End of dial command string - must be present if DS is       */
        !            18:         *CO, /* Connection made at primary baud rate                        */
        !            19:         *CL, /* Connection made at secondary (lower) baud rate              */
        !            20:         *IS, /* Initialization string - reset modem to onhook and ready     */
        !            21:        *HU; /* Hangup command                                              */
        !            22: extern
        !            23: int     AD, /* Delay after AT string before next command                    */
        !            24:         BD, /* Highest communications baud rate                             */
        !            25:         BL, /* Another, lower baud rate                                     */
        !            26:         ID; /* Delay time after initialization                              */
        !            27: 
        !            28: /*
        !            29:  * The dial command is the principle string that must be built.
        !            30:  * The routines will build a dial command as follows:
        !            31:  *
        !            32:  *      <CS><DS><phone-number><DE><CE>
        !            33:  *
        !            34:  * Note that the DE and CE strings are present ALWAYS.
        !            35:  * This procedure will be used to dial phone numbers if the DI flag is true.
        !            36:  * If this isn't the way to dial numbers,
        !            37:  * DO NOT SET DI IN THE MODEMCAP FILE!!!
        !            38:  */
        !            39: 
        !            40: /*
        !            41:  * a hangup command will be performed as follows:
        !            42:  *
        !            43:  *      1). any attention string (AT) will be sent followed by the delay (AD)
        !            44:  *      2). modem should now be in command state, send hangup (HU) command
        !            45:  *      3). send initialization string (IS) followed by the delay (ID)
        !            46:  *
        !            47:  * It is important that you determine a correct AT and HU string
        !            48:  *  to perform this function.
        !            49:  * If the modem hangs up when DTR falls (even if there is a HU string),
        !            50:  *  declare the flag HC (for Hangup on Close).
        !            51:  */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.