If the client has sufficient permissions, the server process opens the file and sends its contents back to the client. The connected client process then supplies the server with a file name. Each thread can accept a client connection. In this example, the server process creates four threads. The following example demonstrates how to create a named pipe by using the NamedPipeServerStream class. To implement name pipes, use the NamedPipeServerStream and NamedPipeClientStream classes. Named pipes support full duplex communication over a network and multiple server instances, message-based communication, and client impersonation, which enables connecting processes to use their own set of permissions on remote servers. They offer more functionality than anonymous pipes, which provide interprocess communication on a local computer. Named pipes provide interprocess communication between a pipe server and one or more pipe clients.
0 Comments
Leave a Reply. |