home *** CD-ROM | disk | FTP | other *** search
/ World of Shareware - Software Farm 2 / wosw_2.zip / wosw_2 / CPROG / ISC366.ZIP / SERIAL / XONOFF.H < prev   
Text File  |  1993-09-01  |  1KB  |  36 lines

  1. ///////////////////////////////////////////////////////////////////////////
  2. //                                                                       //
  3. //            File: XOnOff.h                                             //
  4. //            started on: 23/2/92                                        //
  5. //                                                                       //
  6. ///////////////////////////////////////////////////////////////////////////
  7. //                                                                       //
  8. //  This class submits to XON and XOFF requests and so is compatible     //
  9. //  with some modems. Useful for software flow control, also...          //
  10. //                                                                       //
  11. ///////////////////////////////////////////////////////////////////////////
  12. //                                                                       //
  13. //                    by Ofer Laor (AKA LeucroTTA)                       //
  14. //                                                                       //
  15. ///////////////////////////////////////////////////////////////////////////
  16.  
  17. #ifndef __XONOFF_H
  18. #define __XONOFF_H
  19.  
  20. #include "serial.h"; // SERIAL_PORT
  21.  
  22. const XON=  0x11;
  23. const XOFF= 0x13;
  24.  
  25. class XONOFF : public SERIAL_PORT {
  26.  
  27. protected:
  28.           virtual inline void flow_check(void);
  29.           virtual inline BOOLEAN flow_set(BYTE in_byte);
  30. public:
  31.  
  32.        XONOFF();
  33. };
  34.  
  35. #endif /* __XONOFF_H */
  36.