0

I wonder if MemoryStream.WriteTo is an asynchronous method ?

i am using it like this in my asynchronous Socket Server

public void Send(byte[] buffer)
{
    if (buffer == null)
        return;

    using (var s = new MemoryStream(buffer))
    {
        if (SslStream != null) s.WriteTo(SslStream);
    }
}
4

1 に答える 1

2

いいえ、そうではありません。    

于 2012-09-26T22:57:02.650 に答える