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

  1. Newsgroups: alt.irc
  2. Path: sparky!uunet!spool.mu.edu!agate!doc.ic.ac.uk!warwick!sunserver1.aston.ac.uk!uhura!evansmp
  3. From: evansmp@uhura.aston.ac.uk (Mark Evans)
  4. Subject: Re: /dcc
  5. Message-ID: <1993Jan21.120517.12904@aston.ac.uk>
  6. Sender: usenet@aston.ac.uk (Usenet administrator)
  7. Nntp-Posting-Host: uhura
  8. Organization: Aston University
  9. X-Newsreader: TIN [version 1.1 PL241235]
  10. References: <1993Jan20.222051.1484@usage.csd.unsw.OZ.AU>
  11. Date: Thu, 21 Jan 1993 12:05:17 GMT
  12. Lines: 60
  13.  
  14. Troy Rollo (troy@cbme.unsw.EDU.AU) wrote:
  15. : Initiator:
  16. :     DCC command issued.
  17. :     Create a socket, bind it to INADDR_ANY, port 0, and
  18. :         make it passive (a listening socket).
  19. :     Send the recipient a DCC request via CTCP supplying
  20. :         the address and port of the socket. (This
  21. :         is ideally taken from the address of the local
  22. :         side of the socket which is connected to a
  23. :         server. This is presumably the interface on
  24. :         the host which is closest to the rest of
  25. :         the net, and results in one less routing hop
  26. :         in the case of gateway nodes).
  27. :     Continue normally until a connection is received.
  28.  
  29. How about having the recipient also be able to send a REFUSE CTCP back
  30. which will cause the socket the requester is holding to be closed.
  31. (possibly also a timeout on DCC requests)
  32. (avoids hogging resorces)
  33. :     On a connection:
  34. :     Accept the connection.
  35.  
  36. could also put in a check that the host connecting to you is what you
  37. expect it to be
  38.  
  39. :     Close the original passive socket.
  40.  
  41. (while this is open anyone who knows it's port number can connect to it,
  42. should be just the client you are trying to contact. Anyone who can run
  43. a program such as netstat on your machine can find this out)
  44.  
  45. :     Conduct transaction on the new socket.
  46. : Acceptor:
  47. :     CTCP DCC request received.
  48. :     Record information on the DCC request and notify the user.
  49. :     At this point, the USER should be able to abort (close) the
  50.  
  51. (aborting by sending a message back to the user which will notify them
  52. and clean up things at their end)
  53.  
  54. :     request, or accept it. The request should be accepted with
  55. :     a command specifying the sender, type, and argument, or
  56. :     a subset of these where no ambiguity exists.
  57. :     If accepted, create a TCP socket.
  58. :     Connect the new socket to the address and port supplied.
  59. :     Conduct the transaction over the socket.
  60.  
  61. Is a DCC REFUSE command currently included?
  62.  
  63. --
  64. -------------------------------------------------------------------------
  65. Mark Evans                                   |evansmp@uhura.aston.ac.uk
  66. +(44) 21 429 9199  (Home)                    |evansmp@cs.aston.ac.uk
  67. +(44) 21 359 6531 x4039 (Office)             |
  68.