home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 164.lha / IPC / DemoSources / MinClient.doc < prev    next >
Text File  |  1988-04-28  |  2KB  |  39 lines

  1.  
  2.                      Minimal Test Client for Pserver
  3.                      ===============================
  4.  
  5. This is a really stupid little test and demonstration program that sends
  6. messages packed with different kinds of data to Pserver for formatting.
  7. These is little variety to the messages -- they just increment a count or
  8. two each time -- and you have no control over their content.  I expect
  9. there to be more satisfying uses of Pserver than this.
  10.  
  11. The program requires a console for both input and output, so it is probably
  12. best started in a CLI of its own (or you can use separate redirected
  13. windows for input and output).  For proper operation of course you must
  14. also have Pserver running (with its own output window) before you try to
  15. send a message.  (MinClient will inform you if it isn't.)  Of course there
  16. is no problem in running several copies of MinClient.
  17.  
  18. Each time you type the return key in its console, MinClient sends a message
  19. to Pserver for formatting.  If you just type a return, the output will
  20. appear in the server's window, but you can redirect it back to your own via
  21. two paths, by typing a selection character before the return.  If you type
  22. "f<return>" ("File"), Pserver will be passed the file handle of MinClient's
  23. OWN console, and the output will appear there instead.  If you type
  24. "m<return>" ("Message"), it will be requested to pass the output string
  25. back to MinClient -- to do with as it will.  What it actually does is just
  26. display it in this case.  (Other characters will do the same job -- see the
  27. source; this is simply because I was used to them from another context.)
  28.  
  29. You can send a 'QUIT' message to Pserver by "q<return>" (leaving MinClient
  30. running).  Pserver will also quit if all copies of MinClient (or any other
  31. clients using port "Print_Format") exit.  (You can start Pserver first,
  32. though, and it WILL wait around until a client shows up.)
  33.  
  34. For more details on the workings of Pserver and MinClient, please refer
  35. directly to the sources.  Their operation is heavily commented.
  36.  
  37.                             ++++++++++++++++
  38.  
  39.