?
Solved

Named Pipe problem

Posted on 2003-11-04
3
Medium Priority
?
342 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 200 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
Suggested Courses

800 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