interprocess communication---Named pipes

Source: Internet
Author: User
Tags naming convention

1. Named pipes (Named Pipes)

is a simple inter-process communication (IPC) mechanism. A named pipe can be reliable bidirectional or unidirectional data communication between different processes on the same computer, or between different processes across a network of different computers.

Named pipes take advantage of the Microsoft Network provider (MSNP) redirector, so there is no need to involve details such as the underlying communication protocol. Named pipes are a mechanism designed around the Windows file system, using the Named pipe file system (Named pipe SYSTEM,NPFS) interface. As a result, both the client and the server can use standard WIN32 file system API functions such as ReadFile and WriteFile to send and receive data.

The naming specification for named Pipes follows the Universal Naming convention (UNC):

  \\server\pipe[\path]\name

(1) where \\server specifies the name of a server, and if it is local, it is represented by \ \.

(2) \pipe is an immutable "hard-coded" string (case insensitive) that indicates that the file belongs to the NPFS

(3) [\path]\name uniquely identifies the name of a named pipe.

interprocess communication---Named pipes

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.