Solved

Named Pipe problem

Posted on 2003-11-04
3
340 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

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…
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
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.

695 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