home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: alt.irc
- Path: sparky!uunet!munnari.oz.au!metro!usage!news
- From: troy@cbme.unsw.EDU.AU (Troy Rollo)
- Subject: Re: /dcc
- Message-ID: <1993Jan21.230202.28360@usage.csd.unsw.OZ.AU>
- Sender: news@usage.csd.unsw.OZ.AU
- Nntp-Posting-Host: plod.cbme.unsw.edu.au
- Organization: University of New South Wales
- References: <1993Jan21.120517.12904@aston.ac.uk>
- Date: Thu, 21 Jan 1993 23:02:02 GMT
- Lines: 62
-
- From article <1993Jan21.120517.12904@aston.ac.uk>, by evansmp@uhura.aston.ac.uk (Mark Evans):
- > How about having the recipient also be able to send a REFUSE CTCP back
- > which will cause the socket the requester is holding to be closed.
-
- Generally if somebody doesn't want a file, it's unlikely to be offered to them.
- If the user wants to cancel the offer, they can at any time.
-
- > (possibly also a timeout on DCC requests)
-
- That's not a protocol issue.
-
- > (avoids hogging resorces)
-
- An idle socket doesn't cost much in resources because no mbufs are allocated
- to it yet.
-
- > (while this is open anyone who knows it's port number can connect to it,
- > should be just the client you are trying to contact. Anyone who can run
- > a program such as netstat on your machine can find this out)
-
- Anyone can do this with talk and ftp too. Of course, they have to figure
- out which of usually several open connections they are aiming to get at.
- This is also a client private consideration, not a protocol consideration.
-
- > : At this point, the USER should be able to abort (close) the
- >
- > (aborting by sending a message back to the user which will notify them
- > and clean up things at their end)
-
- In practice, about the only time this feature will be used is when somebody
- sends a DCC request maliciously (somebody you wouldn't want to talk to
- or somebody trying to send a file to replace one in your home directory).
-
- > Is a DCC REFUSE command currently included?
-
- No, but it would be simple to alias it.
-
- ALIAS REFUSE
- {
- CTCP $1 REFUSE $0 $2
- DCC CLOSE $0 $1 $2
- }
-
- ON ^CTCP "% % REFUSE % %"
- {
- if ( [$1] == N )
- {
- ^DCC CLOSE $3 $0 $4
- if ([$4])
- {
- echo *** DCC $3 \($4\) to $0 refused
- }
- {
- echo *** DCC $3 (any) to $0 refused
- }
- }
- }
- --
- _______________________________________________________________________________
- troy@cbme.unsw.EDU.AU Overworked, overcommited and always multitasking.
- Opinions expressed are not those of the CBME or UNSW, but are my opinions only.
- You are free to adopt them. I suggest you adopt them. You will adopt them!
-