The windows named pipe buffer size limitation.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • walsug
    New Member
    • Oct 2008
    • 14

    The windows named pipe buffer size limitation.

    hello,
    I created a named pipe by CreateNamedPipe (),but some bug arised in my application,whi ch I think has something to do with the pipe buffer size(out buffer size and in buffer size),this size could be set to system minimum or system maximum,when assigned zero,the size is system default value.
    My question is : how can I get these values(max,min, default)?Especi ally the system default value.
    Is it variant under different OS?(Mine is windows xp sp2 or windows 2003)

    regards.
    -yogo
  • Nepomuk
    Recognized Expert Specialist
    • Aug 2007
    • 3111

    #2
    Hi walsug!

    First of all, not everybody here knows what CreateNamedPipe () is - I for example had to search to find that it's a C++ method that (if I understand correctly) is declared in winbase.h (which is included in windows.h). In future, please give such information yourself.

    The section you mean is probably this:
    Originally posted by MSDN
    The input and output buffer sizes are advisory. The actual buffer size reserved for each end of the named pipe is either the system default, the system minimum or maximum, or the specified size rounded up to the next allocation boundary.
    Now, I don't know how to find these values, but I'm guessing there are variables to hold them defined somewhere in winbase.h or windows.h.

    Anyway, I'm moving this to the C/C++ Forum as I expect the experts there can help you much better than the Windows experts can.

    Greetings,
    Nepomuk (Moderator)

    Comment

    Working...