home *** CD-ROM | disk | FTP | other *** search
-
-
- Nmptoy.exe is a program that can be used to conveniently learn about
- the characteristics of the named pipe APIs. It's based on COW.
-
- Inside the program, the command menu are divided into 3 categories:
- - General commands 1, 2, and 3 for the APIs that can be called
- from either side of the named pipe.
- - Server commands for the APIs that can only be called from the
- server (or the maker) side of the named pipe.
- - Client commands for the APIs that can only be called from the
- client (or the opener) side of the named pipe.
-
- Inside the main window there are two sets of FOCUS WINDOWs. The focus
- windows are required for connected named pipe; one focus window is needed
- to represent what happens on one side of the pipe.
- The focus window set consists of a status window, a write window, and
- a read window.
-
- The status window consists of a focus indicator, a blocking command
- indicator, blocking command name, blocking command status, number of
- bytes written, number of bytes read, named pipe handle, and named pipe
- name.
-
- An example of what happens in the focus window is described below.
- If DosConnectNmPipe command is issued against a server handle, it will be
- "attached" to an available focus window; the focus indicator will be
- highlighted, and the blocking (command) indicator will also be highlighted
- since DosConnect is a blocking type command. When the pipe is opened on the
- other side, the blocking indicator is dehighlighted, and the status is
- displayed.
-
- The blocking type commands are DosConnect, DosWrite, DosRead, Dos-
- Transact, DosCall, DosWait. The nonblocking type command completion
- status is displayed through window dialog.
-
- The main window also displays the inventory of handle/named pipes that
- are made and opened. The information are listed as follows:
- Ends: Server or client.
- Type: Full duplex, server to client, or client to server.
- Open Mode: in hex format.
- Pipe Mode: in hex format.
- Out buffer: buffer for server to client pipe. Initially it is 0
- to get actual number do DosQNmPipeInfo.
- In buffer: buffer for client to server pipe.
- Focus window: if handle is focused you'll see W1 or W2.
- Semaphore: if handle is attached to a semaphore you'll see *.
- Handle: in hex format.
- Name:
-
- The program is limited to 3 Named pipes made; if you want to
- make a new named pipe after reaching the limit, you have to close an
- existing one.
-