home *** CD-ROM | disk | FTP | other *** search
/ The Devil's Doorknob BBS Capture (1996-2003) / devilsdoorknobbbscapture1996-2003.iso / Dloads / WWIVMODS / MODSUNKN.ZIP / MODEM.MOD < prev    next >
Text File  |  1992-01-29  |  3KB  |  88 lines

  1.                       MODEM OUTPUT RESTRICT MODIFICATION
  2.                  By The Captain of the White Star Line (@2370)
  3.                   With helpful advice from Shai-Hulud (@3101)
  4.  
  5. Quite simply, this mod will allow you to use your computer in privacy while a
  6. user is on-line. By hitting Ctrl-F3, you will send a [WAIT] string to the user,
  7. then the modem output will be cut off. You can then do whatever you want -
  8. UEDIT, LOG, BOARDEDIT, etc. and the user will see nothing until you hit
  9. Ctrl-F3 again.
  10.  
  11. In CONIO.C, look for void skey and add the following case block:
  12. ------------------------------------------------------------------------------
  13.  
  14.  case 96: /* Ctrl-F3 */
  15.    if (outcom) {
  16.      pr_wait(1);
  17.      incom=0;
  18.      outcom=0;
  19.    } else {
  20.      outcom=1;
  21.      incom=1;
  22.      pr_wait(0);
  23.    }
  24.    break;
  25.  
  26. _______________________________________________________________________________
  27.  
  28.               MODIFICATION FOR WWIVnet AND HAYES 9600 V-SERIES MODEMS
  29.                            by Ed Dial - #1 @6550
  30.  
  31.  
  32.    This mod will clear the problem with the Hayes 9600 modems and networking.
  33.    Presently, when the network function finishes, it leaves the RTS line clear,
  34.    which stops any input from the modem on a high-speed login. This will fix
  35.    that along with giving you the function to toggle RTS from software.
  36.  
  37. -------------------------------------------------------
  38.  
  39.  
  40. In COM.C Add the following lines:
  41.  
  42.   void rts(int i)
  43.    {
  44.     int i1;
  45.     i1 = inportb(base + 4) & 0x00FD;
  46.     outportb(base + 4, (i || 0) ? (i1 + 2) : i1);
  47.    }
  48.  
  49. (This gives you the capacity to toggle RTS (i.e. rts(1) will set RTS,
  50.  rts(0) will clear RTS))
  51.  
  52.  
  53. ------------------------------------------------------
  54.  
  55.    In FCNS.H add the line
  56.  
  57.   void rts(int i);
  58.  
  59. ------------------------------------------------------
  60.  
  61. In BBS.C  position on  void answer_phone()
  62. Add   rts(1);   at the + sign.
  63.  
  64.  
  65.  
  66.   =  void answer_phone()
  67.   =   {
  68.   =    char ch,s[81],s1[81];
  69.   =    int i,i1,done;
  70.   =    double d;
  71.   =
  72.   =    outs("Answering phone, 'H' to abort.\r\n");
  73.   =    pr1(syscfg.answer);
  74.   =    done=0;
  75.   =    d=timer();
  76.   =
  77.   +    rts(1);
  78.   =     do {
  79.   =       if (fabs(timer()-d)>45.0) {
  80.   =       pr1("AT{");
  81. -------------------------------------------------------
  82.  
  83. Compile this, set Flow Control in the INIT setups to
  84. YES, make sure the modem (Hayes) is set &K3, n' Rock n'
  85. Roll!!
  86.  
  87. _______________________________________________________________________________
  88.