home *** CD-ROM | disk | FTP | other *** search
/ Super Net 1 / SUPERNET_1.iso / PC / OTROS / EXTRAS / UUCODE / UUPC / TEST / UPC12ES2.ZIP / UUCICO / modem.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-10-12  |  3.4 KB  |  102 lines

  1. #ifndef MODEM_H
  2. #define MODEM_H
  3.  
  4. /*--------------------------------------------------------------------*/
  5. /*    m o d e m . h                                                   */
  6. /*                                                                    */
  7. /*    Prototypes for high level modem support routines                */
  8. /*--------------------------------------------------------------------*/
  9.  
  10. /*--------------------------------------------------------------------*/
  11. /*    Changes Copyright (c) 1989-1993 by Kendra Electronic            */
  12. /*    Wonderworks.                                                    */
  13. /*                                                                    */
  14. /*    All rights reserved except those explicitly granted by the      */
  15. /*    UUPC/extended license agreement.                                */
  16. /*--------------------------------------------------------------------*/
  17.  
  18. /*
  19.  *    $Id: modem.h 1.11 1993/10/12 01:35:12 ahd Exp $
  20.  *
  21.  *    Revision history:
  22.  *    $Log: modem.h $
  23.  * Revision 1.11  1993/10/12  01:35:12  ahd
  24.  * Normalize comments to PL/I style
  25.  *
  26.  * Revision 1.10  1993/10/07  22:32:45  ahd
  27.  * Change transfer buffer to long
  28.  *
  29.  * Revision 1.9  1993/10/03  20:44:22  ahd
  30.  * Move slowWrite to script.c
  31.  *
  32.  * Revision 1.8  1993/09/29  04:56:11  ahd
  33.  * Suspend port by port name, not modem file name
  34.  *
  35.  * Revision 1.7  1993/09/28  01:40:29  ahd
  36.  * Configurable timeout for conversation start up
  37.  *
  38.  * Revision 1.6  1993/09/20  04:53:57  ahd
  39.  * TCP/IP support from Dave Watt
  40.  * 't' protocol support
  41.  * OS/2 2.x support (BC++ 1.0 for OS/2 support)
  42.  *
  43.  * Revision 1.5  1993/04/11  00:36:13  ahd
  44.  * Global edits for year, TEXT, etc.
  45.  *
  46.  * Revision 1.4  1992/11/28  19:53:22  ahd
  47.  * Make callin time parameter const
  48.  *
  49.  * Revision 1.3  1992/11/18  03:50:17  ahd
  50.  * Move check of call window to avoid premature lock file overhead
  51.  *
  52.  */
  53.  
  54. /*--------------------------------------------------------------------*/
  55. /*                           Defined types                            */
  56. /*--------------------------------------------------------------------*/
  57.  
  58. typedef enum {
  59.    MODEM_FIXEDSPEED,
  60.    MODEM_VARIABLEPACKET,
  61.    MODEM_LARGEPACKET,
  62.    MODEM_DIRECT,
  63.    MODEM_CD,
  64.    MODEM_LAST
  65.    } MODEM_FLAGS;
  66.  
  67. /*--------------------------------------------------------------------*/
  68. /*                        Function prototypes                         */
  69. /*--------------------------------------------------------------------*/
  70.  
  71. CONN_STATE callup(void );
  72.  
  73. CONN_STATE callin( const time_t exit_time );
  74.  
  75. CONN_STATE callhot( const BPS speed );
  76.  
  77. void shutDown( void );
  78.  
  79. KEWSHORT GetGPacket( KEWSHORT maxvalue, const char protocol );
  80.  
  81. KEWSHORT GetGWindow( KEWSHORT maxvalue, const char protocol );
  82.  
  83. boolean getmodem( const char *brand);
  84.  
  85. /*--------------------------------------------------------------------*/
  86. /*                       Environment variables                        */
  87. /*--------------------------------------------------------------------*/
  88.  
  89. extern boolean  bmodemflag[MODEM_LAST];
  90. extern char     *M_device;
  91. extern KEWSHORT M_fPacketSize;
  92. extern KEWSHORT M_fPacketTimeout;
  93. extern KEWSHORT M_gPacketTimeout;
  94. extern KEWSHORT M_MaxErr;
  95. extern KEWSHORT M_PortTimeout;
  96. extern KEWSHORT M_startupTimeout;       /* pre-procotol exchanges     */
  97. extern KEWSHORT M_tPacketTimeout;
  98. extern KEWLONG  M_xfer_bufsize;
  99. extern KEWSHORT M_charDelay;
  100.  
  101. #endif
  102.