home *** CD-ROM | disk | FTP | other *** search
/ Collection of Hack-Phreak Scene Programs / cleanhpvac.zip / cleanhpvac / TIERRA40.ZIP / DOC / ALCOMM.DOC next >
Text File  |  1992-05-02  |  1KB  |  39 lines

  1.  
  2.  
  3.   There are two connection-oriented (TCP) CLinks: Pathways (connected sockets)
  4. and Portals (listening sockets).
  5.  
  6. CLinks may be Synchronous or Asynchronous (more later).
  7.  
  8. To `service' a CLink means:
  9.   Pathway: if data are available, then requests are read from the pathway and
  10.     entered into the request queue (except private requests, which are
  11.     handled immediately and discarded).
  12.   Portal: if connections are pending, they are accepted and made into active
  13.     CLinks (default synchronous) and a `new-connect' request is added to
  14.     the local request queue.
  15.  
  16. ------------------------------------------------------
  17.  
  18. Nice solution to deadlocking problem:
  19.  
  20.   Make flowcontrol a service of the UPPER layer (M layer), NOT the lower
  21.     layer (AL layer)
  22.  
  23.  
  24. --------------------------------------------------------------
  25.  
  26.  
  27. Are these things necessary:
  28.  
  29. ALCheckRequestQueue
  30.  
  31.  
  32. -----------------------------------------------------------------------
  33.  
  34. MProcessRequests()
  35.  
  36.   - calls ALServiceCLinks() with a NoWait option.
  37.   - calls ALDequeueRequest(); if successful, processes that request.
  38.  
  39. --------------------