8.4. Named Pipes

Compatibility Note: At the time of publication, it is not possible to create a named pipe server in Windows 98 because of aConnectNamedPipefailure.

While the mailslot facility discussed in the previous section is easy to use, it has one handicap that often makes it unacceptable: it does not guarantee delivery. For example, if two programs on different machines communicate via mailslots, the following problem arises: When machine one sends a message to machine two, it has no way to know that the data actually arrived. You could code the programs so that machine two sends back an acknowledgment, but then you could argue that it has no way of knowing if the acknowledgment arrived. This problem means that if machine one has sent ...

Get Win32 System Services: The Heart of Windows® 98 and Windows® 2000 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.