home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: alt.irc
- Path: sparky!uunet!spool.mu.edu!agate!doc.ic.ac.uk!warwick!sunserver1.aston.ac.uk!uhura!evansmp
- From: evansmp@uhura.aston.ac.uk (Mark Evans)
- Subject: Re: /dcc
- Message-ID: <1993Jan21.120517.12904@aston.ac.uk>
- Sender: usenet@aston.ac.uk (Usenet administrator)
- Nntp-Posting-Host: uhura
- Organization: Aston University
- X-Newsreader: TIN [version 1.1 PL241235]
- References: <1993Jan20.222051.1484@usage.csd.unsw.OZ.AU>
- Date: Thu, 21 Jan 1993 12:05:17 GMT
- Lines: 60
-
- Troy Rollo (troy@cbme.unsw.EDU.AU) wrote:
- :
- : Initiator:
- : DCC command issued.
- : Create a socket, bind it to INADDR_ANY, port 0, and
- : make it passive (a listening socket).
- : Send the recipient a DCC request via CTCP supplying
- : the address and port of the socket. (This
- : is ideally taken from the address of the local
- : side of the socket which is connected to a
- : server. This is presumably the interface on
- : the host which is closest to the rest of
- : the net, and results in one less routing hop
- : in the case of gateway nodes).
- : Continue normally until a connection is received.
-
- 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.
- (possibly also a timeout on DCC requests)
- (avoids hogging resorces)
- :
- : On a connection:
- : Accept the connection.
-
- could also put in a check that the host connecting to you is what you
- expect it to be
-
- : Close the original passive socket.
-
- (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)
-
- : Conduct transaction on the new socket.
- :
- : Acceptor:
- : CTCP DCC request received.
- : Record information on the DCC request and notify the user.
- :
- : 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)
-
- : request, or accept it. The request should be accepted with
- : a command specifying the sender, type, and argument, or
- : a subset of these where no ambiguity exists.
- :
- : If accepted, create a TCP socket.
- : Connect the new socket to the address and port supplied.
- : Conduct the transaction over the socket.
-
- Is a DCC REFUSE command currently included?
- :
-
- --
- -------------------------------------------------------------------------
- Mark Evans |evansmp@uhura.aston.ac.uk
- +(44) 21 429 9199 (Home) |evansmp@cs.aston.ac.uk
- +(44) 21 359 6531 x4039 (Office) |
-