|
-
March 24th, 2005, 09:34 AM
#1
Help with named pipes
Hi,
I start a named pipe in a server process:
pipe = CreateNamedPipe("\\\\.\\pipe\\Test", PIPE_ACCESS_DUPLEX | FILE_FLAG_WRITE_THROUGH, PIPE_TYPE_BYTE, PIPE_UNLIMITED_INSTANCES, 1000, 1000, 3000, NULL);
and use it in a client with:
pipe = CreateFile( "\\\\.\\pipe\\Test", GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, NULL);
WriteFile(pipe, buffer, 7, (DWORD*)&y, NULL);
CloseHandle(pipe);
I receive the data on the server side but the problem is that i cannot open the pipe from the client again. I always get an error.
Is there something that I am missing ?
I really appreciate any help on this.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|