Solved

Named Pipe problem

Posted on 2003-11-04
3
330 Views
Last Modified: 2010-04-02
i have created namedpipe server and a client.The server creates the namedpipe properly, but when the client tries to use createfile() to open the namedpipe error says Bad N/W ..cant find the specified namedpipe.What cud be the reason.I am using local computer for cliant server.the name notation is \\\\.\\pipe\\pipename on server and \\\\machinename\\pipe\\pipename  on client
0
Comment
Question by:Poojam15
3 Comments
 
LVL 4

Accepted Solution

by:
YuriPutivsky earned 50 total points
ID: 9680768
To establish pipe connection
On server side
1. CreateNamedPipe
2. ConnectNamedPipe

On client side
1. WaitNamedPipe
2. CreateFile
...
read/write
ReadFile/WriteFile

...
Disconnect

On server side
1. DisconnectNamedPipe
2. CloseHandle

On client side
1. CloseHandle
0
 
LVL 9

Expert Comment

by:tinchos
ID: 10242513
No comment has been added lately, so it's time to clean up this TA.
I will leave the following recommendation for this question in the Cleanup topic area:

Accept: YuriPutivsky {http:#9680768}

Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Tinchos
EE Cleanup Volunteer
0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
TTimer no longer functioning 7 91
Lambda for random numbers problem 7 113
C++ standard library based binary archive format 6 99
Arduino EDI - Programming language 3 97
Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question