Search code examples
c#socketssslstream

How to send List<ArraySegment<byte>> in SslStream


I want to send List> through SslStream. We can send this using Socke.Send but i want SSL security.


Solution

  • foreach (var segment in segments)
    {
        sslStream.Write(segment.Array, segment.Offset, segment.Count);
    }