#1 2015-01-13 23:04:30

Sabbiolina
Member
Registered: 2014-05-20
Posts: 120

[NAMEDPIPE] avoid double server

Hi AB,

I'm looking at the function of creating the namedpipe:

Why are you using this flag (PIPE_UNLIMITED_INSTANCES)?

Would not it be helpful to use FILE_FLAG_FIRST_PIPE_INSTANCE to prevent the creation of the same pipe?

Offline

#2 2015-01-14 07:16:46

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,660
Website

Re: [NAMEDPIPE] avoid double server

To allow several clients?

This part of the code was written a long time ago.
I remember having started from existing patterns.

Offline

#3 2015-01-14 09:45:02

Sabbiolina
Member
Registered: 2014-05-20
Posts: 120

Re: [NAMEDPIPE] avoid double server

I'm sorry, I forgot a part of the post ...

I wondered if that flag could help to avoid the risk of starting two servers with the same namedpipe.

Only the first working properly, the second does not detect any error.
I'm not very expert namedpipe, I wondered then if that flag could help in better manage the situation.

Offline

Board footer

Powered by FluxBB