The MSDN documentation clearly states that:
After obtaining the NetworkStream, you can call the EndWrite method to successfully complete the send operation and return the number of bytes sent.
Emphasis mine.
However, it returns nothing (void):
public override void EndWrite(
IAsyncResult asyncResult
)
Am I missing something, or is this a typo (EndRead()
does return bytes read).?