473,397 Members | 2,077 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

The windows named pipe buffer size limitation.

14
hello,
I created a named pipe by CreateNamedPipe(),but some bug arised in my application,which 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)?Especially the system default value.
Is it variant under different OS?(Mine is windows xp sp2 or windows 2003)

regards.
-yogo
Nov 26 '08 #1
1 12658
Nepomuk
3,112 Expert 2GB
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:
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)
Nov 26 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Srijit Kumar Bhadra | last post by:
Hello, Here is an example of Multithreaded Pipe Server and Client using the excellent ctypes library (Windows). Reference - MSDN:...
2
by: Ken Lindner | last post by:
I have a need to become familiar with SQL Server 2000 for work. Needless to say I am new to SQL Server any version, but not IT in general. My employer has provided me with the SQL Server 2000...
9
by: Dario de Judicibus | last post by:
I need to read a file as BINARY by 16 bits units, and write to another file as BINARY by 8, 16 and 24 bits units. It is pratically a pipe. I'm looking for a sample of C++ code simple, performing...
1
by: AckMike | last post by:
I am trying to write client and server programs that communicate with named pipes. There is one multithreaded server that handles all of the requests and multiple multithread clients that make...
1
by: Lewap | last post by:
Hi! I've piece of code like follow: <code> LPTSTR lpszPipename = (LPTSTR) "\\\\.\\pipe\\testpipe"; hPipe = CreateNamedPipe(
3
by: a | last post by:
Hi everybody, Is it possible to open a named pipe from a php script on Windows? More specifically, I have a Windows service that receives commands through a named pipe, and I'd like to open...
4
by: Peter van Schie | last post by:
Hi all, I'm trying to create a named pipe to communicate with another application from a PHP application. The thing is that I cannot use any of the posix functions on Windows, including...
4
by: aki | last post by:
Hi all, i am writing codes for implementing network protocols. i have written a method which is receiving a packet from network. i have assumed that the packet i will receive will be of type...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.