home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_disks / 200-299 / ff290.lzh / IPC / Sources / FormatClient.DOC < prev    next >
Text File  |  1989-12-11  |  2KB  |  43 lines

  1.  
  2.                    Minimal Test Client for FormatServer
  3.                    ====================================
  4.  
  5. This is a really stupid little test and demonstration program that sends
  6. messages packed with different kinds of data to FormatServer 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 FormatServer 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 FormatServer running (with its own output window) before you try
  15. to send a message.  (FormatClient will inform you if it isn't.)  If you have
  16. the Port Broker running (with a suitable startup list) it should start the
  17. FormatServer automatically (see the Broker directory).  Of course there is
  18. no problem in running several copies of FormatClient.
  19.  
  20. Each time you type the return key in its console, FormatClient sends a
  21. message to FormatServer for formatting.  If you just type a return, the
  22. output will appear in the server's window, but you can redirect it back to
  23. your own via two paths, by typing a selection character before the return.
  24. If you type "f<return>" ("File"), FormatServer will be passed the file
  25. handle of FormatClient's OWN console, and the output will appear there
  26. instead.  If you type "m<return>" ("Message"), it will be requested to pass
  27. the output string back to FormatClient -- to do with as it will.  What it
  28. actually does is just display it in this case.  (Other characters will do
  29. the same job -- see the source; this is simply because I was used to them
  30. from another context.)
  31.  
  32. You can send a 'QUIT' message to FormatServer by "q<return>" (leaving
  33. FormatClient running).  FormatServer will also quit if all copies of
  34. FormatClient (or any other clients using port "Print_Format") exit.  (You
  35. can start FormatServer first, though, and it WILL wait around until a
  36. client shows up.)
  37.  
  38. For more details on the workings of FormatServer and FormatClient, please
  39. refer directly to the sources.  Their operation is heavily commented.
  40.  
  41.                             ++++++++++++++++
  42.  
  43.