Tuesday, April 3, 2018

NamedPipeServerStream inBufferSize

Hi. Constructor of the NamedPipeServerStream has the parameter inBufferSize("indicates the input buffer size"). I have a server app that WriteLines the numbers I send to it from client app. I set transmission mode to "Byte" and inBufferSize to 1. As far as I understand it - the pipe can store only one byte. But nevertheless my client app writes 4 bytes(Int32 number) via Write function with 3 parameters and server successfully get all of them with the help of MemoryStream. inBufferSize doesn't matter.

So what this "inBufferSize" is for?

P.S. Sorry, I don't provide the code cause I am on the phone right now.

NamedPipeServerStream inBufferSize Click here
  • Blogger Comment
  • Facebook Comment

0 comments:

Post a Comment

The webdev Team