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

  1. #ifndef ULIB_H
  2. #define ULIB_H
  3.  
  4. /*--------------------------------------------------------------------*/
  5. /*    u l i b . h                                                     */
  6. /*                                                                    */
  7. /*    Native mode (serial port) communications functions              */
  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. /*                          RCS Information                           */
  20. /*--------------------------------------------------------------------*/
  21.  
  22. /*
  23.  *    $Id: ulib.h 1.5 1993/11/20 14:50:25 ahd Exp $
  24.  *
  25.  *    Revision history:
  26.  *    $Log: ulib.h $
  27.  * Revision 1.5  1993/11/20  14:50:25  ahd
  28.  * Add prototype for GetComHandle
  29.  *
  30.  * Revision 1.4  1993/09/20  04:53:57  ahd
  31.  * TCP/IP support from Dave Watt
  32.  * 't' protocol support
  33.  * OS/2 2.x support (BC++ 1.0 for OS/2 support)
  34.  *
  35.  * Revision 1.3  1993/05/30  00:11:03  ahd
  36.  * Multiple communications drivers support
  37.  *
  38.  */
  39.  
  40. extern int nopenline(char *name, BPS baud, const boolean direct);
  41.  
  42. extern unsigned int nsread(char *buffer,
  43.                           unsigned int wanted,
  44.                           unsigned int timeout);
  45.  
  46. int nswrite(const char *data, unsigned int len);
  47.  
  48. void nssendbrk(unsigned int duration);
  49.  
  50. void ncloseline(void);
  51.  
  52. void nSIOSpeed(BPS baud);
  53.  
  54. void nflowcontrol( boolean );
  55.  
  56. void nhangup( void );
  57.  
  58. BPS nGetSpeed( void );
  59.  
  60. boolean nCD( void );
  61.  
  62. #if defined(BIT32ENV) || defined(FAMILYAPI)
  63.  
  64. int nGetComHandle( void );
  65.  
  66. #endif
  67.  
  68. #endif
  69.