Limit buffer size

  • Thread starter Thread starter Juliano.net
  • Start date Start date
J

Juliano.net

How can I limit the buffer size for an I/O port (serial port) via C++?
 
Juliano.net said:
How can I limit the buffer size for an I/O port (serial port) via C++?

In unmanaged C++ and Win32, first open the serial port with CreateFile, then
call SetupComm.

In C++/CLI, instantiate a System::IO::Ports::SerialPort object and set the
ReadBufferSize and/or WriteBufferSize properties.

Note that in either case, Windows and/or the serial port driver is free to
decide on the appropriate buffer sizes. Your settings are treated as
recommendations, not mandates.

Sean
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top