Network communication in .NET

.net , cpp.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).

Contribute

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.

“The first 90% of the code accounts for the first 90% of the development time. The remaining 10% of the code accounts for the other 90% of the development time.” - Tom Cargill