home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / alt / irc / 5072 < prev    next >
Encoding:
Text File  |  1993-01-21  |  2.4 KB  |  75 lines

  1. Newsgroups: alt.irc
  2. Path: sparky!uunet!munnari.oz.au!metro!usage!news
  3. From: troy@cbme.unsw.EDU.AU (Troy Rollo)
  4. Subject: Re: /dcc
  5. Message-ID: <1993Jan21.230202.28360@usage.csd.unsw.OZ.AU>
  6. Sender: news@usage.csd.unsw.OZ.AU
  7. Nntp-Posting-Host: plod.cbme.unsw.edu.au
  8. Organization: University of New South Wales
  9. References: <1993Jan21.120517.12904@aston.ac.uk>
  10. Date: Thu, 21 Jan 1993 23:02:02 GMT
  11. Lines: 62
  12.  
  13. From article <1993Jan21.120517.12904@aston.ac.uk>, by evansmp@uhura.aston.ac.uk (Mark Evans):
  14. > How about having the recipient also be able to send a REFUSE CTCP back
  15. > which will cause the socket the requester is holding to be closed.
  16.  
  17. Generally if somebody doesn't want a file, it's unlikely to be offered to them.
  18. If the user wants to cancel the offer, they can at any time.
  19.  
  20. > (possibly also a timeout on DCC requests)
  21.  
  22. That's not a protocol issue.
  23.  
  24. > (avoids hogging resorces)
  25.  
  26. An idle socket doesn't cost much in resources because no mbufs are allocated
  27. to it yet.
  28.  
  29. > (while this is open anyone who knows it's port number can connect to it,
  30. > should be just the client you are trying to contact. Anyone who can run
  31. > a program such as netstat on your machine can find this out)
  32.  
  33. Anyone can do this with talk and ftp too. Of course, they have to figure
  34. out which of usually several open connections they are aiming to get at.
  35. This is also a client private consideration, not a protocol consideration.
  36.   
  37. > :     At this point, the USER should be able to abort (close) the
  38. > (aborting by sending a message back to the user which will notify them
  39. > and clean up things at their end)
  40.  
  41. In practice, about the only time this feature will be used is when somebody
  42. sends a DCC request maliciously (somebody you wouldn't want to talk to
  43. or somebody trying to send a file to replace one in your home directory).
  44.  
  45. > Is a DCC REFUSE command currently included?
  46.  
  47. No, but it would be simple to alias it.
  48.  
  49.     ALIAS REFUSE
  50.     {
  51.         CTCP $1 REFUSE $0 $2
  52.         DCC CLOSE $0 $1 $2
  53.     }
  54.  
  55.     ON ^CTCP "% % REFUSE % %"
  56.     {
  57.         if ( [$1] == N )
  58.         {
  59.             ^DCC CLOSE $3 $0 $4
  60.             if ([$4])
  61.             {
  62.                 echo *** DCC $3 \($4\) to $0 refused
  63.             }
  64.             {
  65.                 echo *** DCC $3 (any) to $0 refused
  66.             }
  67.         }
  68.     }
  69. --
  70. _______________________________________________________________________________
  71. troy@cbme.unsw.EDU.AU          Overworked, overcommited and always multitasking.
  72. Opinions expressed are not those of the CBME or UNSW, but are my opinions only.
  73. You are free to adopt them.   I suggest you adopt them.    You will adopt them!
  74.