Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • How would that improve the performance? If I'd send the message's length before the actual message, I'd need another disconenct to signalize C# to read it. I am quite sure that the System-API already makes use of buffered structures.
    – chollinger
    Commented Oct 16, 2012 at 13:09
  • No, you normally should not need to disconnect for signaling! Just send the amount of bytes first, in C# you read this amount and read an array of bytes till you have the same amount, so C# knows when it's ready.
    – André
    Commented Oct 17, 2012 at 6:30