Skip to main content

Problem:

The demonstration attached uses the Microsoft APIs to ' I-O'  on named pipes

Microsoft URL / named pipes:

      http://msdn2.microsoft.com/en-us/library/Aa365590.aspx

Microsoft URL / named pipes->PipeReference->Pipe Functions :

     http://msdn2.microsoft.com/en-us/library/aa365781.aspx

Resolution:

A .ZIP is attached.

For the simplest,

1) Unzip the attachment on a working directory

2) Open a Net Express command prompt

3) Compile the sources files, just launch DOcl.bat

4) Open another  Net Express command prompt session, just type start in the 1st DOS session

5) Launch the PIPE server in DOS session 1 ( run STARTpipeserver )

this 'PIPE' server will create a named pipe and wait for incoming requests from 'PIPE clients'

6) Launch a "PIPE client   in DOS session 2.  ( run MSG2pipeserver )

The 'PIPE client'  sends a message to the 'PIPE server' which simply 'ECHOes'  this message  back to the client

7) To Stop the 'PIPE server',   in DOS session 2,

simply launch  STOPpipeserver   ( run  STOPpipeserver)

Attachments:

NamedPipe.zip

Old KB# 1516