home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / PIPEDEME.ZIP / READ.ME < prev   
Text File  |  1990-05-30  |  2KB  |  52 lines

  1. The Zaphodyne Named Pipe Demo   30 May 1990
  2.  
  3.     -or-
  4.  
  5. How to send lots of data transparently between processes within
  6. or between OS/2 workstations!
  7.  
  8. (neat stuff, what?)
  9.  
  10. This demo contains source & executable for:
  11.  
  12.     PCLIENT.EXE     (the client)
  13.     PSERVER.EXE     (the server)
  14.  
  15. If you have MSC version 5.1 or 6.0, and the OS/2 PTK you may compile
  16. the supplied code using the relevant .CMD files, otherwise just use
  17. the supplied .EXE files.
  18.  
  19. First, from an OS/2 window, run PSERVER, specifying a valid OS/2 pipe name,
  20. for example:
  21.  
  22.     pserver \pipe\test.bin
  23.  
  24. Pserver will start (unless something is drastically wrong), and put up
  25. the message "Waiting for Connection...".  Now run PCLIENT, specifying the
  26. same pipe name, ex:
  27.  
  28.     pclient \pipe\test.bin
  29.  
  30. Assuming nothing breaks, you'll see lots of periods on the screen - each
  31. of which represents the end-to-end transmission of a 64K data block.  On
  32. my machine (a 16 mhz 386XS running OS/2 v 1.2) it does one full line (80) of
  33. these in about 10 seconds, for an effective data rate of 8 MBits/sec.
  34.  
  35. This demo _should_ work over networks, simply specify the network server
  36. name before \pipe\, eg:
  37.  
  38.     pserver \server\pipe\test.bin
  39.  
  40. And I'd be most interested in the results with different network hardware,
  41. please BIXmail to jruley, or EMAIL to 76227,117 on CIS.
  42.  
  43. As to the source code, it is almost trivially short, but does illustrate the
  44. process of making a pipe, establishing a connection, transferring data, and
  45. terminating cleanly.  Please feel free to use it as a skeleton for your own
  46. applications!
  47.  
  48. John D. Ruley
  49. Zaphodyne Inc.
  50. P.O. box 1111, Fairborn OH 45324
  51.  
  52.