Console: Console Named-Pipe Sample

Click to open or copy the Console project files.

This is a simple console named-pipe sample demonstrating the "thread per client" method of a named pipe client/server architecture. This sample application demonstrates how to create and connect clients from a server application, and how to wait for and connect to pipes from a client application.

Building SDK Samples

This sample uses the following keywords:

_beginthread; _endthread; closehandle; connectnamedpipe; createevent; createfile; createnamedpipe; free; getlasterror; getnamedpipehandlestate; getoverlappedresult; initializesecuritydescriptor; malloc; memset; perr; pipecheck; printf; puts; reader; readfile; setconsoletitle; setsecuritydescriptordacl; sprintf; tolower; waitnamedpipe; writefile; writer