The MASM Forum

General => The Campus => Topic started by: six_L on October 14, 2013, 04:11:44 PM

Title: A named pipe in a network environment
Post by: six_L on October 14, 2013, 04:11:44 PM
A named pipe is usually used in a network environment where a server can connect to several clients.
how are you used?
Title: Re: A named pipe in a network environment
Post by: jj2007 on October 14, 2013, 04:21:24 PM
Search here (http://www.masmforum.com/board/index.php?action=search) for pipe. #3 should be the right one for you...
Title: Re: A named pipe in a network environment
Post by: six_L on October 14, 2013, 05:15:59 PM
thanks your respond,could you give me a detail link?
Title: Re: A named pipe in a network environment
Post by: six_L on October 14, 2013, 06:04:39 PM
http://msdn.microsoft.com/en-us/library/bb546085.aspx
Quote
Named pipes provide interprocess communication between a pipe server and one or more pipe clients. They offer more functionality than anonymous pipes, which provide interprocess communication on a local computer. 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.

To implement name pipes, use the NamedPipeServerStream and NamedPipeClientStream classes.
that's some classes, no any detail.
Title: Re: A named pipe in a network environment
Post by: GoneFishing on October 14, 2013, 06:17:00 PM
QuoteTo implement name pipes, use the NamedPipeServerStream and NamedPipeClientStream classes.
Those classes are from the managed world of .NET

Some more info here (http://msdn.microsoft.com/en-us/library/windows/desktop/aa365590(v=vs.85).aspx)
Title: Re: A named pipe in a network environment
Post by: jj2007 on October 14, 2013, 08:35:53 PM
Quote from: six_L on October 14, 2013, 05:15:59 PM
thanks your respond,could you give me a detail link?

The search for pipe in the old forum posted above yields eight pages of results. The six_L we had in the old forum was perfectly able to read and write, even about named pipes (http://www.masmforum.com/board/index.php?topic=5162.0)...
Title: Re: A named pipe in a network environment
Post by: six_L on October 15, 2013, 12:35:50 AM
That's me. the post was talked about the named pipe to exchange the datas of a server between more processes in local. not in a network environment.
how do the hPipe and hSock to be associated?