Solved

Named Pipe problem

Posted on 2003-11-04
3
336 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
C++ get user from AD  (VS6) 7 95
C++ Language error 28 280
c++ getting the first 10 characters of a char* string 11 104
Safe conversion? 4 76
When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
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.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

749 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