home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 3 / TheARMClub_PDCD3.iso / programs / comms_networking / irclient / !IRClient / Scripts / Docs / Prog / DCC < prev    next >
Encoding:
Text File  |  1997-01-12  |  2.4 KB  |  75 lines

  1. DCC linked list (new format - 12 Jan 1997)
  2. ===============
  3. Offset   Contents
  4. 0        -> next block, or 0 if no more blocks
  5. 4        -> type name of DCC
  6. 8        -> argument of DCC
  7. 12       -> nick at other end of connection
  8. 16       state :
  9.            bit 0 = 0 : we accepted the request (ip and port are theirs)
  10.                    1 : we originated the request (ip and port are ours)
  11.            bit 1 = 0 : offered, awaiting accept
  12.                    1 : connected
  13. 20       ip of connection
  14. 24       port of connection (listen port if +16 = %01)
  15. 28       socket, or 0 if not connected
  16. 32       buffer, or 0 if not connected
  17. 36       base routine name
  18. 40       private word (usually a pointer to a control block)
  19.  
  20.  
  21. DCC Send block (new format - 12 Jan 1997)
  22. ==============
  23. Offset  Contents
  24. 0       -> unix filename
  25. 4       -> riscos filename (full path)
  26. 8       amount sent/received
  27. 12      total length of file, or -1 if not present
  28. 16      filetype, or -1 if not present
  29.  
  30.  
  31.  
  32.  ******************************************************************************
  33.  *****  OBSOLETE  **  OBSOLETE  **  OBSOLETE  **  OBSOLETE  **  OBSOLETE  *****
  34.  ******************************************************************************
  35.  
  36. DCC linked list
  37. ===============
  38.  
  39. Offset  Contents
  40. 0       -> next block, or 0 if no more blocks
  41. 4       -> type of DCC
  42. 8       -> nick of other end
  43. 12      -> name of file or other parameter used
  44. 16      -> private workspace block
  45.  
  46. Note: DDC's will only come into the DCC list once they are accepted, until
  47. then they just 'hang' and there is nothing we can do to close them !
  48.  
  49. Thought: It's possible that we could add them to the list and disable them
  50. by connecting to them ourselves and then closing the connection. Such a
  51. practice would result in them receiving connections which are instantly
  52. dropped. Is this possible, without re-writing lots of code ?
  53.  
  54.  
  55. DCC Chat blocks
  56. ===============
  57. Offset  Contents
  58. 0       -> Nick of other end
  59. 4       Buffer, or (ip or 0 if we initiated) if pending
  60. 8       Socket, or port if pending
  61. 12      Status (0=pending, 1=connected)
  62.  
  63.  
  64. DCC Send blocks
  65. ===============
  66. Offset  Contents
  67. 0       -> Nick of other end
  68. 4       Buffer (or port, if pending)
  69. 8       Socket (or ip, if pending)
  70. 12      filename
  71. 16      offset into file of last block sent (or -1 for pending *** marker)
  72. 20      total length of file (or -1 if not present)
  73. 24      -> filetype string (or -1 if not present)
  74. 28      -> save filename (for GET, but not SEND)
  75.