Network communication in .NET

.net , Hungary
  • 14 years ago

    Hi ^,
    i would like to create a synchron TCP communication using the .NET framework NetworkStream class. In theoretically the NetworkStream::Write(...) function ensures a  synchron sending but my problem is that the Write() function retrieves without waiting for the server gets the data since in fact the Write method puts the data into the outgoing network buffer and the Write() doesn't wait for the server's answer. The Write() method will be blocked just after this buffer will be full.  
    Do you know someone how can i switch out this buffer or how can i set the size of this buffer to zero? Thx for your help!

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).


Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“A computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are, in short, a perfect match” - Bill Bryson